# CVE-2024-45508: HTMLDOC before 1.9.19 has an out-of-bounds write in parseparagraph in ps-pdf.cxx because of an attempt to strip leading whitespace from a w…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-01T00:00:00.000Z
- Modified: 2026-06-17T07:54:20.583Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- htmldoc htmldoc: before 1.9.19
- htmldoc_project htmldoc: before 1.9.19

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/michaelrsweet/htmldoc/issues/528> (exploit, issue-tracking, patch)
- <https://github.com/michaelrsweet/htmldoc/commit/2d5b2ab9ddbf2aee2209010cebc11efdd1cab6e2> (patch)
- <https://github.com/michaelrsweet/htmldoc/blob/2d5b2ab9ddbf2aee2209010cebc11efdd1cab6e2/CHANGES.md> (release-notes)

## Sources

- CVE List: [CVE-2024-45508](https://www.cve.org/CVERecord?id=CVE-2024-45508), CVE Terms of Use, modified 2024-09-03
- NVD: [CVE-2024-45508](https://nvd.nist.gov/vuln/detail/CVE-2024-45508), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45508 · Whole record: https://cve.day/CVE-2024-45508.json · Rebuilt by cve.day 2026-11-25T22:58:44.916Z
