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

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
zbar PyPIAll versions to 0.23.90None
zbar PyPIAll versions to 0.23.90None
zbar PyPIAll versions to 0.23.90None

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.

Sources

Also known as DEBIAN-CVE-2023-40889, GHSA-mhp6-jvpx-2p4m, PYSEC-2026-576, UBUNTU-CVE-2023-40889.

Is CVE-2023-40889 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free