Vulnerability · Published Aug 29, 2023 · Assigned by mitre
CVE-2023-40889
Critical 9.8
In plain English
A critical-severity security flaw in the zbar package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.7%top 22.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
A heap-based buffer overflow exists in the qr_reader_match_centers function of ZBar 0.23.90. Specially crafted QR codes may lead to information disclosure and/or arbitrary code execution. To trigger this vulnerability, an attacker can digitally input the malicious QR code, or prepare it to be physically scanned by the vulnerable scanner.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40889 |
| Alpine:v3.21 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40889 |
| Alpine:v3.22 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40889 |
| Alpine:v3.23 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40889 |
| Alpine:v3.24 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40889 |
| Debian:12 | zbar | 0.23.92-7+deb12u1 | DEBIAN-CVE-2023-40889 |
| Debian:12 | zbar | 0.23.92-7+deb12u1 | DSA-5614-1 |
| Debian:13 | zbar | 0.23.92-9 | DEBIAN-CVE-2023-40889 |
| Debian:14 | zbar | 0.23.92-9 | DEBIAN-CVE-2023-40889 |
| PyPI | zbar | no fix listed | PYSEC-2026-576 |
| PyPI | zbar | no fix listed | GHSA-mhp6-jvpx-2p4m |
| Ubuntu:25.10 | zbar | no fix listed | UBUNTU-CVE-2023-40889 |
| Ubuntu:26.04:LTS | zbar | no fix listed | UBUNTU-CVE-2023-40889 |
| Ubuntu:26.10 | zbar | no fix listed | UBUNTU-CVE-2023-40889 |
Affected products (as reported)
References
- https://hackmd.io/%40cspl/B1ZkFZv23
- [debian-lts-announce] 20231201 [SECURITY] [DLA 3675-1] zbar security update mailing-list
- FEDORA-2024-583e4098b9 vendor-advisory
- FEDORA-2024-73d5220ed3 vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DC7V5YCLCPB36J2KY6WLZCABFLBRB665/