Vulnerabilities / CVE-2023-40889

critical

CVE-2023-40889

A heap-based buffer overflow exists in the qr_reader_match_centers fun ...

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Amazon (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pipzbarno fix listed
alpine 3.19zbar0.23.93-r0
alpine 3.20zbar0.23.93-r0
alpine 3.21zbar0.23.93-r0
alpine 3.22zbar0.23.93-r0
alpine 3.23zbar0.23.93-r0
alpine 3.24zbar0.23.93-r0
alpine edgezbar0.23.93-r0
amazon linux 1zbar, zbar-debuginfo, zbar-devel0.10-19.3.amzn1
debian 10zbar0.22-1+deb10u1
debian 11zbar0.23.90-1+deb11u1
debian 12zbar0.23.92-7+deb12u1
Show all 21 entries from 19 sources
SourcePackageFixed in
pip::GitHub Security Advisory pipzbarno fix listed
alpine 3.19zbar0.23.93-r0
alpine 3.20zbar0.23.93-r0
alpine 3.21zbar0.23.93-r0
alpine 3.22zbar0.23.93-r0
alpine 3.23zbar0.23.93-r0
alpine 3.24zbar0.23.93-r0
alpine edgezbar0.23.93-r0
amazon linux 1zbar0.10-19.3.amzn1
amazon linux 1zbar-debuginfo0.10-19.3.amzn1
amazon linux 1zbar-devel0.10-19.3.amzn1
debian 10zbar0.22-1+deb10u1
debian 11zbar0.23.90-1+deb11u1
debian 12zbar0.23.92-7+deb12u1
debian 13zbar0.23.92-9
debian 14zbar0.23.92-9
echozbar0.23.92-7+deb12u1
ubuntu 16.04-ESMzbar0.10+doc-10ubuntu1+esm1
ubuntu 18.04-ESMzbar0.10+doc-10.1ubuntu0.1~esm1
ubuntu 20.04-ESMzbar0.23-1.3ubuntu0.1~esm1
ubuntu 22.04zbarno fix listed

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.