CVE-2023-40889 Heap-based buffer overflow in ZBar
A heap-based buffer overflow in ZBar allows attackers to execute arbitrary code or disclose information via crafted QR codes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-40889?
CVE-2023-40889 is a critical memory corruption vulnerability in n/a, published on 29 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-787
Which versions are affected by CVE-2023-40889?
3 open source packages ship an affected version, including zbar. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
zbar PyPI | All versions to 0.23.90 | None |
zbar PyPI | All versions to 0.23.90 | None |
zbar PyPI | All versions to 0.23.90 | None |
Products include Zbar Project Zbar.
How do I fix CVE-2023-40889?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-40889 being exploited?
There is no known exploitation of CVE-2023-40889 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2023-40889, GHSA-mhp6-jvpx-2p4m, PYSEC-2026-576, UBUNTU-CVE-2023-40889.