# CVE-2023-40889: Heap-based buffer overflow in ZBar

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.73%, higher than 78% of CVEs (2026-12-01)
- Published: 2023-08-29T00:00:00.000Z
- Modified: 2026-07-01T20:23:12.100Z
- Also known as: GHSA-mhp6-jvpx-2p4m, PYSEC-2026-576
- Weaknesses: CWE-122, CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- zbar (PyPI): up to 0.23.90
- zbar_project zbar: 0.23.90

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://hackmd.io/%40cspl/B1ZkFZv23>
- <https://lists.debian.org/debian-lts-announce/2023/12/msg00001.html> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25LZZQJGGZRPLKTRNRNOTAFQJIPS7WRP/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DC7V5YCLCPB36J2KY6WLZCABFLBRB665/> (vendor-advisory)
- <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://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://pypi.org/project/zbar> (package)
- <https://github.com/advisories/GHSA-mhp6-jvpx-2p4m> (advisory)

## Sources

- CVE List: [CVE-2023-40889](https://www.cve.org/CVERecord?id=CVE-2023-40889), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-mhp6-jvpx-2p4m](https://github.com/advisories/GHSA-mhp6-jvpx-2p4m), CC-BY-4.0, modified 2026-06-29
- NVD: [CVE-2023-40889](https://nvd.nist.gov/vuln/detail/CVE-2023-40889), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-576](https://osv.dev/vulnerability/PYSEC-2026-576), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2023-40889 · Whole record: https://cve.day/CVE-2023-40889.json · Rebuilt by cve.day 2026-11-25T22:58:27.413Z
