HTMLDOC before 1.9.19 has an out-of-bounds write in parse_paragraph in ps-pdf.cxx because of an attempt to strip leading whitespace from a whitespace-only node.
[
{
"deprecated": false,
"source": "https://github.com/michaelrsweet/htmldoc/commit/2d5b2ab9ddbf2aee2209010cebc11efdd1cab6e2",
"id": "CVE-2024-45508-01e0d9cc",
"signature_version": "v1",
"target": {
"file": "htmldoc/ps-pdf.cxx"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68782867560060017259724923564816750929",
"160264590626436307499930712334009916347",
"300369049026148807027730437905144355335",
"27365475782180572492597347525659984954"
]
}
},
{
"deprecated": false,
"source": "https://github.com/michaelrsweet/htmldoc/commit/2d5b2ab9ddbf2aee2209010cebc11efdd1cab6e2",
"id": "CVE-2024-45508-231704bb",
"signature_version": "v1",
"target": {
"function": "parse_paragraph",
"file": "htmldoc/ps-pdf.cxx"
},
"signature_type": "Function",
"digest": {
"function_hash": "441327441782029693950174389595358123",
"length": 14220.0
}
}
]