{"id":"UBUNTU-CVE-2019-12900","details":"BZ2_decompress in decompress.c in bzip2 through 1.0.6 has an out-of-bounds write when there are many selectors.","modified":"2026-02-04T03:43:27.166450Z","published":"2019-06-19T00:00:00Z","related":["USN-4038-1","USN-4038-2","USN-4038-3","USN-4038-4","USN-4146-1","USN-4146-2"],"upstream":["CVE-2019-12900"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-12900"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4038-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4038-2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4038-3"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4038-4"},{"type":"REPORT","url":"https://bugs.launchpad.net/ubuntu/+source/bzip2/+bug/1834494"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4146-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4146-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-12900"}],"affected":[{"package":{"name":"bzip2","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/bzip2@1.0.6-5ubuntu0.1~esm2?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.6-5ubuntu0.1~esm2"}]}],"versions":["1.0.6-4","1.0.6-5","1.0.6-5ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"1.0.6-5ubuntu0.1~esm2","binary_name":"bzip2"},{"binary_version":"1.0.6-5ubuntu0.1~esm2","binary_name":"lib32bz2-1.0"},{"binary_version":"1.0.6-5ubuntu0.1~esm2","binary_name":"lib32bz2-dev"},{"binary_version":"1.0.6-5ubuntu0.1~esm2","binary_name":"lib64bz2-1.0"},{"binary_version":"1.0.6-5ubuntu0.1~esm2","binary_name":"lib64bz2-dev"},{"binary_version":"1.0.6-5ubuntu0.1~esm2","binary_name":"libbz2-1.0"},{"binary_version":"1.0.6-5ubuntu0.1~esm2","binary_name":"libbz2-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12900.json"}},{"package":{"name":"clamav","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/clamav@0.101.4+dfsg-0ubuntu0.14.04.1+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1"}]}],"versions":["0.97.8+dfsg-1ubuntu4","0.97.8+dfsg-1ubuntu5","0.98.1+dfsg-1ubuntu4","0.98.1+dfsg-1ubuntu5","0.98.1+dfsg-2ubuntu2","0.98.1+dfsg-4ubuntu1","0.98.1+dfsg-4ubuntu1.1","0.98.5+addedllvm-0ubuntu0.14.04.1","0.98.6+dfsg-0ubuntu0.14.04.1","0.98.7+dfsg-0ubuntu0.14.04.1","0.99.2+addedllvm-0ubuntu0.14.04.1","0.99.2+addedllvm-0ubuntu0.14.04.2","0.99.3+addedllvm-0ubuntu0.14.04.1","0.99.4+addedllvm-0ubuntu0.14.04.1","0.100.1+dfsg-1ubuntu0.14.04.1","0.100.1+dfsg-1ubuntu0.14.04.2","0.100.1+dfsg-1ubuntu0.14.04.3","0.100.1+dfsg-1ubuntu0.14.04.4","0.100.2+dfsg-1ubuntu0.14.04.1","0.100.2+dfsg-1ubuntu0.14.04.2","0.100.3+dfsg-0ubuntu0.14.04.1","0.100.3+dfsg-0ubuntu0.14.04.1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"clamav"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"clamav-base"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"clamav-daemon"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"clamav-docs"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"clamav-freshclam"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"clamav-milter"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"clamav-testfiles"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"libclamav-dev"},{"binary_version":"0.101.4+dfsg-0ubuntu0.14.04.1+esm1","binary_name":"libclamav9"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12900.json"}},{"package":{"name":"bzip2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/bzip2@1.0.6-8ubuntu0.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.6-8ubuntu0.1"}]}],"versions":["1.0.6-8"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1.0.6-8ubuntu0.1","binary_name":"bzip2"},{"binary_version":"1.0.6-8ubuntu0.1","binary_name":"libbz2-1.0"},{"binary_version":"1.0.6-8ubuntu0.1","binary_name":"libbz2-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12900.json"}},{"package":{"name":"clamav","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/clamav@0.101.4+dfsg-0ubuntu0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.101.4+dfsg-0ubuntu0.16.04.1"}]}],"versions":["0.98.7+dfsg-0ubuntu4","0.98.7+dfsg-0ubuntu5","0.99+dfsg-1ubuntu1","0.99+dfsg-1ubuntu1.1","0.99+dfsg-1ubuntu1.2","0.99.2+dfsg-0ubuntu0.16.04.1","0.99.2+dfsg-0ubuntu0.16.04.2","0.99.2+dfsg-0ubuntu0.16.04.3","0.99.3+addedllvm-0ubuntu0.16.04.1","0.99.4+addedllvm-0ubuntu0.16.04.1","0.100.1+dfsg-1ubuntu0.16.04.1","0.100.1+dfsg-1ubuntu0.16.04.2","0.100.1+dfsg-1ubuntu0.16.04.3","0.100.2+dfsg-1ubuntu0.16.04.1","0.100.3+dfsg-0ubuntu0.16.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamav"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamav-base"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamav-daemon"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamav-docs"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamav-freshclam"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamav-milter"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamav-testfiles"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"clamdscan"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"libclamav-dev"},{"binary_version":"0.101.4+dfsg-0ubuntu0.16.04.1","binary_name":"libclamav9"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12900.json"}},{"package":{"name":"bzip2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/bzip2@1.0.6-8.1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.6-8.1ubuntu0.1"}]}],"versions":["1.0.6-8.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1.0.6-8.1ubuntu0.1","binary_name":"bzip2"},{"binary_version":"1.0.6-8.1ubuntu0.1","binary_name":"libbz2-1.0"},{"binary_version":"1.0.6-8.1ubuntu0.1","binary_name":"libbz2-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12900.json"}},{"package":{"name":"clamav","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/clamav@0.101.4+dfsg-0ubuntu0.18.04.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.101.4+dfsg-0ubuntu0.18.04.1"}]}],"versions":["0.99.2+dfsg-6ubuntu2","0.99.3~beta1+dfsg-2ubuntu1","0.99.3~beta1+dfsg-2ubuntu2","0.99.3+addedllvm-0ubuntu1","0.99.3+addedllvm-0ubuntu2","0.99.4+addedllvm-0ubuntu1","0.100.1+dfsg-1ubuntu0.18.04.1","0.100.1+dfsg-1ubuntu0.18.04.2","0.100.1+dfsg-1ubuntu0.18.04.3","0.100.2+dfsg-1ubuntu0.18.04.1","0.100.3+dfsg-0ubuntu0.18.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamav"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamav-base"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamav-daemon"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamav-docs"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamav-freshclam"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamav-milter"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamav-testfiles"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"clamdscan"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"libclamav-dev"},{"binary_version":"0.101.4+dfsg-0ubuntu0.18.04.1","binary_name":"libclamav9"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12900.json"}}],"schema_version":"1.7.3","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":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}