{"id":"UBUNTU-CVE-2021-23165","details":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","modified":"2026-02-04T04:37:29.290697Z","published":"2022-03-16T15:15:00Z","related":["USN-5438-1","USN-5438-2"],"upstream":["CVE-2021-23165"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23165"},{"type":"REPORT","url":"https://github.com/michaelrsweet/htmldoc/issues/413"},{"type":"REPORT","url":"https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5438-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23165"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5438-2"}],"affected":[{"package":{"name":"htmldoc","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/htmldoc@1.8.27-8ubuntu1+esm2?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1+esm2"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"htmldoc","binary_version":"1.8.27-8ubuntu1+esm2"},{"binary_name":"htmldoc-common","binary_version":"1.8.27-8ubuntu1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23165.json"}},{"package":{"name":"htmldoc","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/htmldoc@1.8.27-8ubuntu1.1+esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1.1+esm1"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"htmldoc","binary_version":"1.8.27-8ubuntu1.1+esm1"},{"binary_name":"htmldoc-common","binary_version":"1.8.27-8ubuntu1.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23165.json"}},{"package":{"name":"htmldoc","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/htmldoc@1.9.2-1ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.2-1ubuntu0.2"}]}],"versions":["1.8.27-8ubuntu2","1.8.27-8ubuntu3","1.9.2-1","1.9.2-1ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"htmldoc","binary_version":"1.9.2-1ubuntu0.2"},{"binary_name":"htmldoc-common","binary_version":"1.9.2-1ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23165.json"}},{"package":{"name":"htmldoc","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/htmldoc@1.9.7-1ubuntu0.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7-1ubuntu0.3"}]}],"versions":["1.9.3-1","1.9.7-1","1.9.7-1build1","1.9.7-1ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_name":"htmldoc","binary_version":"1.9.7-1ubuntu0.3"},{"binary_name":"htmldoc-common","binary_version":"1.9.7-1ubuntu0.3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23165.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":"Ubuntu","score":"medium"}]}