{"id":"CVE-2023-40889","aliases":["CVE-2023-40889","GHSA-mhp6-jvpx-2p4m","PYSEC-2026-576"],"related":[],"kind":"vulnerability","state":"published","title":"Heap-based buffer overflow in ZBar","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-08-29T00:00:00.000Z","modified":"2026-07-01T20:23:12.100Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-122","CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.23.90"}],"ecosystem":"PyPI","package":"zbar","purl":"pkg:pypi/zbar","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.23.90"}],"vendor":"zbar_project","product":"zbar","cpe":"cpe:2.3:a:zbar_project:zbar:0.23.90:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.23.90"}],"ecosystem":"PyPI","package":"zbar","purl":"pkg:pypi/zbar","source":"pysec"}],"references":[{"url":"https://hackmd.io/%40cspl/B1ZkFZv23","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00001.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25LZZQJGGZRPLKTRNRNOTAFQJIPS7WRP/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DC7V5YCLCPB36J2KY6WLZCABFLBRB665/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DC7V5YCLCPB36J2KY6WLZCABFLBRB665/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40889","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mchehab/zbar","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://hackmd.io/@cspl/B1ZkFZv23","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25LZZQJGGZRPLKTRNRNOTAFQJIPS7WRP","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DC7V5YCLCPB36J2KY6WLZCABFLBRB665","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/zbar","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-mhp6-jvpx-2p4m","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40889","url":"https://www.cve.org/CVERecord?id=CVE-2023-40889","licence":"CVE Terms of Use","modified":"2025-11-04T18:16:43.280Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mhp6-jvpx-2p4m","url":"https://github.com/advisories/GHSA-mhp6-jvpx-2p4m","licence":"CC-BY-4.0","modified":"2026-06-29T12:26:35.245Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40889","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40889","licence":"Public domain","modified":"2026-06-17T06:19:48.080Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-576","url":"https://osv.dev/vulnerability/PYSEC-2026-576","licence":"CC-BY-4.0","modified":"2026-07-01T20:23:12.100Z"}],"updatedAt":"2026-11-25T22:58:27.413Z","epss":{"score":0.01734,"percentile":0.78332,"date":"2026-12-01T12:00:22.000Z"}}