Vulnerability · Published Aug 29, 2023 · Assigned by mitre
CVE-2023-40890
Critical 9.8
In plain English
A critical-severity out-of-bounds write 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.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A stack-based buffer overflow vulnerability exists in the lookup_sequence 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-40890 |
| Alpine:v3.21 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40890 |
| Alpine:v3.22 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40890 |
| Alpine:v3.23 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40890 |
| Alpine:v3.24 | zbar | 0.23.93-r0 | ALPINE-CVE-2023-40890 |
| Debian:12 | zbar | 0.23.92-7+deb12u1 | DEBIAN-CVE-2023-40890 |
| Debian:12 | zbar | 0.23.92-7+deb12u1 | DSA-5614-1 |
| Debian:13 | zbar | 0.23.92-9 | DEBIAN-CVE-2023-40890 |
| Debian:14 | zbar | 0.23.92-9 | DEBIAN-CVE-2023-40890 |
| Ubuntu:25.10 | zbar | no fix listed | UBUNTU-CVE-2023-40890 |
| Ubuntu:26.04:LTS | zbar | no fix listed | UBUNTU-CVE-2023-40890 |
| Ubuntu:26.10 | zbar | no fix listed | UBUNTU-CVE-2023-40890 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://hackmd.io/%40cspl/H1PxPAUnn
- [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/