ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 4, 2026
- Updated
- Nov 4, 2026
- Reserved
- Nov 4, 2026
Description
ZBar through 0.23.95 contains an out-of-bounds read vulnerability in _zbar_sq_decode() in zbar/sqcode.c that allows attackers to read heap memory outside the image buffer via crafted SQ code images. Attackers can supply an image with a skewed SQ code finder pattern near the edge, producing unchecked sample coordinates that crash the decoder and leak bytes into output.
| Product | Versions |
|---|---|
| zbar mchehab | 0.23.95 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | VulnCheck | |
| 3.1 | 6.1 Medium | VulnCheck |
Weaknesses
- CWE-125 Out-of-bounds Read
References
- https://github.com/mchehab/zbar/issues/351Issue Tracker
- https://hackmd.io/@haindpwn/zbar-sqcode-sampling-oob-readThird-Party Advisory
- https://github.com/mchehab/zbar/blob/0.23.95/zbar/sqcode.c#L529-L567Technical Details
- VulnCheck Advisory: ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.cThird-Party Advisory
- https://hackmd.io/@haindpwn/cve-2026-121942-zbar-sqcode-sampling-oob-readExploit
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.