{"api_version":"1","generated_at":"2026-07-23T14:37:04+00:00","cve":"CVE-2021-23165","urls":{"html":"https://cve.report/CVE-2021-23165","api":"https://cve.report/api/cve/CVE-2021-23165.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23165","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23165"},"summary":{"title":"CVE-2021-23165","description":"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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-03-16 15:15:00","updated_at":"2022-03-22 17:01:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f","name":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f","refsource":"MISC","tags":[],"title":"Fix a number-up crash bug (Issue #413) · michaelrsweet/htmldoc@6e8a955 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch","name":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch","refsource":"MISC","tags":[],"title":"","mime":"text/x-diff","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/michaelrsweet/htmldoc/issues/413","name":"https://github.com/michaelrsweet/htmldoc/issues/413","refsource":"MISC","tags":[],"title":"AddressSanitizer: heap-buffer-overflow in pspdf_prepare_outpages()  in ps-pdf.cxx:1338:15 · Issue #413 · michaelrsweet/htmldoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1967014","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1967014","refsource":"MISC","tags":[],"title":"1967014 – (CVE-2021-23165) CVE-2021-23165 htmldoc: heap-buffer-overflow in pspdf_prepare_outpages()","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23165","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23165","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"23165","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"htmldoc_project","cpe5":"htmldoc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23165","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"htmldoc_project","cpe5":"htmldoc","cpe6":"1.9.12","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-23165","qid":"178664","title":"Debian Security Update for htmldoc (DSA 4928-1)"},{"cve":"CVE-2021-23165","qid":"178690","title":"Debian Security Update for htmldoc (DLA 2700-1)"},{"cve":"CVE-2021-23165","qid":"179886","title":"Debian Security Update for htmldoc (CVE-2021-23165)"},{"cve":"CVE-2021-23165","qid":"198796","title":"Ubuntu Security Notification for HTMLDOC Vulnerability (USN-5438-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2021-23165","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-122 (Heap-based Buffer Overflow)","cweId":"CWE-122"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"htmldoc","version":{"version_data":[{"version_affected":"=","version_value":"before v1.9.12"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/michaelrsweet/htmldoc/issues/413","refsource":"MISC","name":"https://github.com/michaelrsweet/htmldoc/issues/413"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1967014","refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1967014"},{"url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f","refsource":"MISC","name":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f"},{"url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch","refsource":"MISC","name":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch"}]}},"nvd":{"publishedDate":"2022-03-16 15:15:00","lastModifiedDate":"2022-03-22 17:01:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":10},"severity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:htmldoc_project:htmldoc:*:*:*:*:*:*:*:*","versionEndExcluding":"1.9.12","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:htmldoc_project:htmldoc:1.9.12:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23165","Ordinal":"205418","Title":"CVE-2021-23165","CVE":"CVE-2021-23165","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23165","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}