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.
Published: 2026-11-04
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Out-of-Bounds Read enabling potential memory disclosure
Action: Apply patch
AI Analysis

Impact

ZBar versions through 0.23.95 contain an out-of-bounds read in the function _zbar_sq_decode() within sqcode.c. A crafted SQ code image with a skewed finder pattern near the image edge leads to unchecked sample coordinates, allowing the decoder to read heap memory beyond the image buffer. This can cause a program crash and leak arbitrary bytes into the output. The primary consequence is information disclosure rather than execution of code, but the exposed memory could contain sensitive data used by the host application.

Affected Systems

The vulnerability affects the ZBar barcode decoder library distributed by mchehab, specifically all releases up to and including 0.23.95. Any application or service employing this library without a later, fixed version is susceptible.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity. The EPSS score is currently unavailable, and the vulnerability is not listed in the CISA KEV catalog. Attackers mitigate the issue by supplying a specially crafted image to the decoder, which may be done locally or remotely depending on how the application uses ZBar. Because the flaw is an out-of-bounds read, its exploitation requires the ability to provide image data to the library and a sufficient stack or heap layout that contains exploitable information. The risk is limited to information disclosure and potential denial of service via crashes if the attacker can inject the image. The lack of a known exploitation vector does not diminish the importance of applying a patch or mitigations promptly.

Generated by OpenCVE AI on November 4, 2026 at 13:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ZBar to a version that contains the fix for the out-of-bounds read in _zbar_sq_decode()
  • Validate or sanitize image inputs to ensure that SQ code finder patterns are within the bounds of the image buffer before decoding
  • If possible, disable the SQ code decoding capability in the application if it is not required

Generated by OpenCVE AI on November 4, 2026 at 13:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 04 Nov 2026 14:00:00 +0000

Type Values Removed Values Added
First Time appeared Mchehab
Mchehab zbar
Vendors & Products Mchehab
Mchehab zbar

Wed, 04 Nov 2026 12:45:00 +0000

Type Values Removed Values Added
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.
Title ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'}

cvssV4_0

{'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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-04T12:31:20.522Z

Reserved: 2026-11-04T12:05:50.614Z

Link: CVE-2026-121942

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-04T13:17:28.740

Modified: 2026-11-04T13:17:28.873

Link: CVE-2026-121942

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T13:45:14Z

Weaknesses