{"id":"UBUNTU-CVE-2023-40889","details":"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.","modified":"2026-05-20T16:13:51.344533233Z","published":"2023-08-29T17:15:00Z","related":["USN-7118-1"],"upstream":["CVE-2023-40889"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-40889"},{"type":"REPORT","url":"https://hackmd.io/@cspl/B1ZkFZv23"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-40889"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7118-1"}],"affected":[{"package":{"name":"zbar","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/zbar?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10+doc-9","0.10+doc-9build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10+doc-9build1","binary_name":"libbarcode-zbar-perl"},{"binary_version":"0.10+doc-9build1","binary_name":"libzbar0"},{"binary_version":"0.10+doc-9build1","binary_name":"libzbargtk0"},{"binary_version":"0.10+doc-9build1","binary_name":"libzbarqt0"},{"binary_version":"0.10+doc-9build1","binary_name":"python-zbar"},{"binary_version":"0.10+doc-9build1","binary_name":"python-zbarpygtk"},{"binary_version":"0.10+doc-9build1","binary_name":"zbar-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40889.json"}},{"package":{"name":"zbar","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/zbar?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10+doc-10ubuntu1+esm1"}]}],"versions":["0.10+doc-10build1","0.10+doc-10build2","0.10+doc-10ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10+doc-10ubuntu1+esm1","binary_name":"libbarcode-zbar-perl"},{"binary_version":"0.10+doc-10ubuntu1+esm1","binary_name":"libzbar0"},{"binary_version":"0.10+doc-10ubuntu1+esm1","binary_name":"libzbargtk0"},{"binary_version":"0.10+doc-10ubuntu1+esm1","binary_name":"libzbarqt0"},{"binary_version":"0.10+doc-10ubuntu1+esm1","binary_name":"python-zbar"},{"binary_version":"0.10+doc-10ubuntu1+esm1","binary_name":"python-zbarpygtk"},{"binary_version":"0.10+doc-10ubuntu1+esm1","binary_name":"zbar-tools"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40889.json"}},{"package":{"name":"zbar","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/zbar?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10+doc-10.1ubuntu0.1~esm1"}]}],"versions":["0.10+doc-10.1build2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10+doc-10.1ubuntu0.1~esm1","binary_name":"libbarcode-zbar-perl"},{"binary_version":"0.10+doc-10.1ubuntu0.1~esm1","binary_name":"libzbar0"},{"binary_version":"0.10+doc-10.1ubuntu0.1~esm1","binary_name":"libzbargtk0"},{"binary_version":"0.10+doc-10.1ubuntu0.1~esm1","binary_name":"libzbarqt0"},{"binary_version":"0.10+doc-10.1ubuntu0.1~esm1","binary_name":"python-zbar"},{"binary_version":"0.10+doc-10.1ubuntu0.1~esm1","binary_name":"python-zbarpygtk"},{"binary_version":"0.10+doc-10.1ubuntu0.1~esm1","binary_name":"zbar-tools"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40889.json"}},{"package":{"name":"zbar","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/zbar?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23-1.3ubuntu0.1~esm1"}]}],"versions":["0.23-1.1","0.23-1.2","0.23-1.3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"libbarcode-zbar-perl"},{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"libzbar0"},{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"libzbargtk0"},{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"libzbarqt0"},{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"python3-zbar"},{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"zbar-tools"},{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"zbarcam-gtk"},{"binary_version":"0.23-1.3ubuntu0.1~esm1","binary_name":"zbarcam-qt"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40889.json"}},{"package":{"name":"zbar","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/zbar?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.92-4ubuntu0.1~esm1"}]}],"versions":["0.23.90-1","0.23.92-4","0.23.92-4build2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"libbarcode-zbar-perl"},{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"libzbar0"},{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"libzbargtk0"},{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"libzbarqt0"},{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"python3-zbar"},{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"zbar-tools"},{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"zbarcam-gtk"},{"binary_version":"0.23.92-4ubuntu0.1~esm1","binary_name":"zbarcam-qt"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40889.json"}},{"package":{"name":"zbar","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/zbar?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23.93-7","0.23.93-8"],"ecosystem_specific":{"binaries":[{"binary_version":"0.23.93-8","binary_name":"gir1.2-zbar-1.0"},{"binary_version":"0.23.93-8","binary_name":"libbarcode-zbar-perl"},{"binary_version":"0.23.93-8","binary_name":"libzbar0t64"},{"binary_version":"0.23.93-8","binary_name":"libzbargtk0t64"},{"binary_version":"0.23.93-8","binary_name":"libzbarqt0t64"},{"binary_version":"0.23.93-8","binary_name":"python3-zbar"},{"binary_version":"0.23.93-8","binary_name":"zbar-tools"},{"binary_version":"0.23.93-8","binary_name":"zbarcam-gtk"},{"binary_version":"0.23.93-8","binary_name":"zbarcam-qt"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40889.json"}},{"package":{"name":"zbar","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/zbar?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23.93-8","0.23.93-9ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.23.93-9ubuntu1","binary_name":"gir1.2-zbar-1.0"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"libbarcode-zbar-perl"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"libzbar0t64"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"libzbargtk0t64"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"libzbarqt0t64"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"python3-zbar"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"zbar-tools"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"zbarcam-gtk"},{"binary_version":"0.23.93-9ubuntu1","binary_name":"zbarcam-qt"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40889.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}