Skip to main content

ZBar CVE-2026-121942

| EUVDEUVD-2026-116899 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-04 VulnCheck GHSA-mcxw-xh39-2qjq
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft image with skewed SQ finder pattern near edge
  2. Delivery
    Deliver image to ZBar-based application
  3. Exploit
    User or pipeline decodes crafted image
  4. Execution
    Trigger unchecked sample coordinates in _zbar_sq_decode()
  5. Persist
    Read heap bytes outside image buffer
  6. Impact
    Crash decoder and leak adjacent memory into output

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an application built on ZBar ≤0.23.95 to decode an attacker-supplied image that contains an SQ code; specifically the image must present a skewed SQ code finder pattern positioned near the image edge, which produces unchecked sample coordinates in _zbar_sq_decode(). Because the vector is UI:P, a user or an automated image-processing pipeline must actually feed the crafted image into the decoder - there is no network-service trigger in the reported vector (AV:L). Limiting factors: the attacker gains only leakage of a small amount of adjacent heap memory into the decode output plus a decoder crash (DoS); there is no code execution or write primitive, and the vulnerable path is reached only when SQ code decoding is exercised on the malicious input.

Impact

This is a moderate-priority memory-safety issue rather than a top-tier emergency. The CVSS 4.0 base score is 6.9 (medium) with vector AV:L/AC:L/AT:N/PR:N/UI:P, meaning the attack is local and unauthenticated but requires passive user interaction - an application or user must actually feed the crafted image into ZBar's decoder, so there is no self-propagating remote trigger in the reported vector. Impact is asymmetric: confidentiality is low (VC:L - a handful of adjacent heap bytes leak into output) while availability is high (VA:H - the decoder crashes); there is no integrity impact (VI:N) and no code execution. The vuln.today decision label is 'this_month', not act_now/emergency, which is consistent with the medium score. The CVE is not listed in CISA KEV and no EPSS score is provided in the input, so there is no signal of active or widespread exploitation; a public PoC reference exists (a hackmd technical write-up plus the VulnCheck advisory), but it is not verified as working exploit code. Net: a real, confirmable OOB-read bug worth patching on a normal cycle, whose practical worst case is a denial-of-service crash with limited heap disclosure, gated by the requirement that the target process an attacker-controlled image.

Exploit ScenarioDerived

An attacker crafts a malformed image containing an SQ code whose finder pattern is skewed and positioned near the image edge, then gets it processed by an application that uses ZBar ≤0.23.95 (for example an upload/scanning pipeline or a desktop scanner that the user points at the image). When the application decodes it, _zbar_sq_decode() computes unchecked sample coordinates and reads heap memory past the image buffer, crashing the decoder and potentially emitting leaked bytes in the decode output. A public PoC reference exists (hackmd write-up); it is not verified as working exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 04, 2026

Out-of-bounds heap read in ZBar through 0.23.95's SQ code decoder allows an attacker who supplies a crafted image with a skewed finder pattern near the image edge to leak adjacent heap bytes into decoder output and crash the process. The assessed vector is local (AV:L), unauthenticated, and requires a user or automated pipeline to feed the image into an application using ZBar; impact is limited to low confidentiality loss and high availability loss, with no code execution or write primitive. The supplied data contains no KEV entry, so active exploitation is not confirmed, and no public exploit is identified at time of analysis; the vuln.today priority label is this_month.

RemediationAI

No vendor-released patch or fixed version is identified in the provided references, so monitor the upstream GitHub issue at https://github.com/mchehab/zbar/issues/351 and the VulnCheck advisory for a fixed release. Until then, the exposure-reduction step supported by the available data is to avoid feeding untrusted images into applications or pipelines that exercise ZBar's SQ code decoding path; gating image ingestion and running decoding under a constrained low-privilege process can limit the impact of a crash or leaked heap bytes, but those controls do not fix the out-of-bounds read and may reduce functionality for workflows that depend on decoding untrusted SQ code images.

Affected VersionsENISA

zbar 0 ≤0.23.95

Affected Packages

euvd zbar no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ZBar is a barcode and QR decoding library, and this flaw is an out-of-bounds read (CWE-125) in _zbar_sq_decode() in zbar/sqcode.c. The decoder derives sample coordinates from a detected SQ code finder pattern without validating them against the image buffer bounds, so a skewed finder pattern positioned near the image edge can produce reads outside the heap allocation. Those out-of-bounds bytes can be emitted in the decode output, and the invalid access can terminate the decoder, yielding information disclosure plus denial of service. The affected CPE is cpe:2.3:a:mchehab:zbar:*:*:*:*:*:*:*:* through 0.23.95, and the vulnerable path is reached only when SQ code decoding is exercised on an attacker-supplied image.

Know when Zbar gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.1 MEDIUM

Crafted image fed to a local decoder with required user/app interaction (AV:L/UI:R), no auth (PR:N); OOB read leaks limited heap bytes (C:L) and crashes the decoder (A:H), with no write/integrity impact (I:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 6.1 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
popular open-source barcode/QR decoding library embedded in many apps, not core infra
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy