{"id":"CVE-2026-121942","summary":"ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c","details":"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.","modified":"2026-11-19T00:00:14.447659724Z","published":"2026-11-04T12:31:20.522Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121942.json","unresolved_ranges":[{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"last_affected":"0.23.95"}]}]},{"extracted_events":[{"source":"DESCRIPTION","range":[{"last_affected":"0.23.95"}]}]}]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121942.json"},{"type":"ADVISORY","url":"https://hackmd.io/@haindpwn/zbar-sqcode-sampling-oob-read"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121942"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/zbar-through-0.23.95-out-of-bounds-read-via-zbar-sq-decode-in-sqcode-c"},{"type":"REPORT","url":"https://github.com/mchehab/zbar/issues/351"},{"type":"PACKAGE","url":"https://github.com/mchehab/zbar"},{"type":"ARTICLE","url":"https://github.com/mchehab/zbar/blob/0.23.95/zbar/sqcode.c#L529-L567"},{"type":"EVIDENCE","url":"https://hackmd.io/@haindpwn/cve-2026-121942-zbar-sqcode-sampling-oob-read"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mchehab/zbar","events":[{"introduced":"0"},{"last_affected":"dc19fcc7da58e8cf84ba1ec417e24b04609feb23"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"0.23.95"}],"source":"DESCRIPTION"}]}}],"versions":["0.23.95","0.23.94","0.23.93","0.23.92","0.23.1","0.23","0.22.92","0.22.91","0.22.90","0.22.2","0.22.1","0.22","0.21","0.21-rc1","0.20.1","0.20","0.11-pre","0.10","0.9","0.8","0.7","0.6","0.5","0.4","0.3","0.2","0.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-121942.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}