{"id":"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-03-19T12:42:45.177640Z","published":"2022-03-16T15:15:10.157Z","related":["MGASA-2021-0332"],"references":[{"type":"ADVISORY","url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch"},{"type":"REPORT","url":"https://github.com/michaelrsweet/htmldoc/issues/413"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1967014"},{"type":"FIX","url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/michaelrsweet/htmldoc","events":[{"introduced":"0"},{"fixed":"df5d3010151a506c5ca138548aac02b37fb421f9"},{"fixed":"6e8a95561988500b5b5ae4861b3b0cbf4fba517f"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"1.9.12"}]}}],"versions":["v1.8.30","v1.9","v1.9.1","v1.9.10","v1.9.11","v1.9.2","v1.9.3","v1.9.4","v1.9.5","v1.9.6","v1.9.7","v1.9.8","v1.9.9"],"database_specific":{"vanir_signatures":[{"id":"CVE-2021-23165-3ed1c48a","deprecated":false,"signature_version":"v1","source":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f","digest":{"threshold":0.9,"line_hashes":["29899245667637771670938822648097839685","137215429918228258668544994580327484211","9749687041195673538917204860068654032","231466899035723946641679043138322513824"]},"signature_type":"Line","target":{"file":"htmldoc/ps-pdf.cxx"}},{"id":"CVE-2021-23165-5a3fe8cf","deprecated":false,"signature_version":"v1","source":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f","digest":{"function_hash":"317143762402956248537184830359378314068","length":2554},"signature_type":"Function","target":{"function":"pspdf_prepare_outpages","file":"htmldoc/ps-pdf.cxx"}}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-23165.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"}]}