CVE-2023-40889
CRITICAL 9.8CVSS 3.1Heap-based buffer overflow in ZBar
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.
- Published
- 29 Aug 2023
- Last modified
- 1 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-122CWE-787
- Also known as
- GHSA-mhp6-jvpx-2p4mPYSEC-2026-576
- Sources
- NVDJSONOSV GHSA-mhp6-jvpx-2p4mJSONOSV PYSEC-2026-576JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | zbar_project | zbarcpe:2.3:a:zbar_project:zbar:0.23.90:*:*:*:*:*:*:* |
= 0.23.90 | |
| OSV | PyPI | zbar | <= 0.23.90 |
References
- https://hackmd.io/%40cspl/B1ZkFZv23
- https://lists.debian.org/debian-lts-announce/2023/12/msg00001.html · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25LZZQJGGZRPLKTRNRNOTAFQJIPS7WRP/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DC7V5YCLCPB36J2KY6WLZCABFLBRB665/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DC7V5YCLCPB36J2KY6WLZCABFLBRB665/
- https://nvd.nist.gov/vuln/detail/CVE-2023-40889 · ADVISORY
- https://github.com/mchehab/zbar · PACKAGE
- https://hackmd.io/@cspl/B1ZkFZv23 · WEB
- https://pypi.org/project/zbar · PACKAGE
- https://github.com/advisories/GHSA-mhp6-jvpx-2p4m · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 29 Aug 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Aug 2023)