Description
A flaw was found in the ZBar barcode reader library. A heap-buffer-overflow write of one byte occurs when processing Structured-Append QR codes where the buffer size calculation does not account for NUL separator bytes inserted between decoded segments. An attacker could exploit this by crafting a QR code image that, when scanned by an application using zbar, causes heap corruption leading to a denial of service (application crash).
Published: n/a
Score: 5.5 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service via heap corruption
Action: Patch or Mitigate
AI Analysis

Impact

ZBar, the barcode reading library, contains a heap‑buffer‑overflow bug that writes one byte past a buffer when parsing Structured‑Append QR codes. The flaw occurs because a NUL separator byte inserted between decoded segments is not counted in the buffer size calculation, allowing an attacker to craft a QR image that corrupts heap memory and causes the application to crash. The vulnerability can therefore lead to a denial of service with no immediate confidentiality or integrity impact.

Affected Systems

Any software that incorporates the ZBar library and processes QR codes—including mobile apps, desktop scanners, and embedded devices—may be affected. No specific product or version information is provided, so all builds of ZBar that may handle structured‑append QR codes are potentially vulnerable.

Risk and Exploitability

The CVSS score of 5.5 rates the flaw as moderate severity. No EPSS score is available, and the vulnerability is not listed in CISA's KEV catalog, implying limited known exploitation. The likely attack vector requires an attacker to supply a malicious QR image, which when scanned by a user‑facing application, triggers heap corruption and results in a crash. The risk is primarily that the application becomes unavailable, but it does not facilitate code execution or data disclosure.

Generated by OpenCVE AI on September 22, 2026 at 13:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Acquire and install a patched build of the ZBar library once it is released by the maintainer.
  • If patching is not feasible, configure the application to reject or ignore Structured‑Append QR codes, or remove support for that mode entirely.
  • Validate QR code payloads against a whitelist or hash‑based checkpoint before processing to reduce the chance an attacker’s image reaches the vulnerable code path.

Generated by OpenCVE AI on September 22, 2026 at 13:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 22 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in the ZBar barcode reader library. A heap-buffer-overflow write of one byte occurs when processing Structured-Append QR codes where the buffer size calculation does not account for NUL separator bytes inserted between decoded segments. An attacker could exploit this by crafting a QR code image that, when scanned by an application using zbar, causes heap corruption leading to a denial of service (application crash).
Title zbar: zbar: heap-buffer-overflow write in Structured-Append QR text extraction
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Subscriptions

No data.

cve-icon MITRE

No data.

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-22T00:00:00Z

Links: CVE-2026-95516 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T14:00:19Z

Weaknesses