Description
ZBar commit 2ea2ca58 contains an undefined-behavior vulnerability in the Code 128 decode6() function. When processing specially crafted Code 128 input, decode_e() can return -1 for an invalid edge pattern, and decode6() subsequently left-shifts this negative signed value while constructing the edge signature. The operation invokes undefined behavior and can terminate trap-mode UBSan builds with SIGILL, resulting in denial of service.
Published: 2026-09-24
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

ZBar’s Code 128 decoder contains an undefined‑behavior flaw triggered by special input. A signed negative value returned by decode_e() is left‑shifted in decode6(), invoking undefined behavior that can cause a SIGILL fault in builds compiled with UBSan in trap mode. The only impact is a crash of the process using ZBar; no memory corruption or data disclosure occurs.

Affected Systems

Any system that uses a ZBar library containing the buggy commit 2ea2ca58. Applications ranging from command‑line utilities to embedded barcode readers that parse Code 128 barcodes are at risk when they accept untrusted data.

Risk and Exploitability

The EPSS score of below 1 % indicates a very low likelihood of exploitation in the wild. The CVSS score of 5.5 indicates a medium severity. An attacker must provide malformed Code 128 data, which typically means the target receives user‑supplied barcodes. Successful exploitation results only in a denial‑of‑service via process termination, with no privilege escalation or information leakage. The vulnerability is marked as not listed in CISA KEV, reflecting its minimal exposure and limited impact on availability.

Generated by OpenCVE AI on October 7, 2026 at 09:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ZBar to a release that removes the undefined behavior introduced by commit 2ea2ca58
  • Ensure only properly formed Code 128 barcodes reach the decoder, sanitizing or rejecting malformed input
  • If an immediate update is impossible, run the ZBar component in a separate process or container to contain crashes

Generated by OpenCVE AI on October 7, 2026 at 09:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 07 Oct 2026 10:00:00 +0000

Type Values Removed Values Added
Title ZBar Code 128 Decoder Undefined Behavior Allowing SIGILL Crash

Wed, 07 Oct 2026 08:30:00 +0000

Type Values Removed Values Added
Title Undefined Behavior in ZBar Code 128 Decoder Leads to SIGILL Crash
Weaknesses CWE-20

Wed, 07 Oct 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 06 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-682
Metrics 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'}


Sun, 27 Sep 2026 12:15:00 +0000

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

Sat, 26 Sep 2026 05:45:00 +0000

Type Values Removed Values Added
Title Undefined Behavior in ZBar Code 128 Decoder Leads to SIGILL Crash
Weaknesses CWE-20

Thu, 24 Sep 2026 16:15:00 +0000

Type Values Removed Values Added
Description ZBar commit 2ea2ca58 contains an undefined-behavior vulnerability in the Code 128 decode6() function. When processing specially crafted Code 128 input, decode_e() can return -1 for an invalid edge pattern, and decode6() subsequently left-shifts this negative signed value while constructing the edge signature. The operation invokes undefined behavior and can terminate trap-mode UBSan builds with SIGILL, resulting in denial of service.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-06T17:42:37.691Z

Reserved: 2026-09-10T00:00:00.000Z

Link: CVE-2026-88371

cve-icon Vulnrichment

Updated: 2026-10-06T15:42:32.192Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T16:17:14.100

Modified: 2026-10-06T18:16:57.523

Link: CVE-2026-88371

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T09:45:14Z

Weaknesses