CVE-2026-121942
published medium CVSS 4.0 · 6.9ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mchehab | — | zbar0 through 0.23.95 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mchehab | zbar | 0 through 0.23.95 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-125 Out-of-bounds Read
References
5- https://github.com/mchehab/zbar/blob/0.23.95/zbar/sqcode.c#L529-L567
- https://github.com/mchehab/zbar/issues/351
- https://hackmd.io/@haindpwn/cve-2026-121942-zbar-sqcode-sampling-oob-read
- https://hackmd.io/@haindpwn/zbar-sqcode-sampling-oob-read
- VulnCheck Advisory: ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c https://www.vulncheck.com/advisories/zbar-through-0.23.95-out-of-bounds-read-via-zbar-sq-decode-in-sqcode-c
Provider assertions
2VulnCheck · cna
ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b4521b4991891b8f7f5ab58863653280005b894b5aa2e1f8e86477193a0c881b
- Ingested
- 04 Nov 2026, 18:55:59 UTC
- Source record
- Official CVE record