Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23165
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:43 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-23165
Complete source record
{
"id": "38c20a39679c46f049bc9be97a83e90315570226d8aa98434823aeb412ef7e3e",
"url": "https://osv.dev/vulnerability/CVE-2021-23165",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23165",
"summary": "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.",
"evidence": "osv:CVE-2021-23165",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-23165",
"aliases": [
"CVE-2021-23165"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/michaelrsweet/htmldoc",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "df5d3010151a506c5ca138548aac02b37fb421f9"
},
{
"fixed": "6e8a95561988500b5b5ae4861b3b0cbf4fba517f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:htmldoc_project:htmldoc:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.9.12"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6e8a95561988500b5b5ae4861b3b0cbf4fba517f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.9.11",
"v1.9.10",
"v1.9.9",
"v1.9.8",
"v1.9.7",
"v1.9.6",
"v1.9.5",
"v1.9.4",
"v1.9.3",
"v1.9.2",
"v1.9.1",
"v1.9",
"v1.8.30"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23165.json",
"vanir_signatures": [
{
"id": "CVE-2021-23165-3ed1c48a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"29899245667637771670938822648097839685",
"137215429918228258668544994580327484211",
"9749687041195673538917204860068654032",
"231466899035723946641679043138322513824"
]
},
"source": "https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f",
"target": {
"file": "htmldoc/ps-pdf.cxx"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-23165-5a3fe8cf",
"digest": {
"length": 2554,
"function_hash": "317143762402956248537184830359378314068"
},
"source": "https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f",
"target": {
"file": "htmldoc/ps-pdf.cxx",
"function": "pspdf_prepare_outpages"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:23:31Z"
}
}
],
"modified": "2026-10-20T14:23:31.246567958Z",
"provider": "osv",
"references": [
"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch",
"https://github.com/michaelrsweet/htmldoc/issues/413",
"https://bugzilla.redhat.com/show_bug.cgi?id=1967014",
"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-23165",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388874,
"published_at": "2022-03-16T15:15:10.157+00:00"
}