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.
https://hackmd.io/@haindpwn/zbar-sqcode-sampling-oob-read
https://hackmd.io/@haindpwn/cve-2026-121942-zbar-sqcode-sampling-oob-read
https://github.com/mchehab/zbar/issues/351
https://github.com/mchehab/zbar/blob/0.23.95/zbar/sqcode.c#L529-L567
Published: 2026-11-04
Updated: 2026-11-04
Base Score: 5.6
Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:N/A:C
Severity: Medium
Base Score: 6.1
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Severity: Medium
Base Score: 6.9
Vector: 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
Severity: Medium
EPSS: 0.0024