Heap-based buffer overflow in htmldoc
Priority MEDIUM 48CWE-122Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-122 and the CVSS impact.
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.
Why it matters now
EPSS 0.03512 89th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed htmldoc: v1.9.12
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | htmldoc | before v1.9.12 | v1.9.12 | Patch available | CNA |
- htmldoc Vendor— Affected before v1.9.12 Fixed in v1.9.12 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:htmldoc_project:htmldoc:*:*:*:*:*:*:*:* | before 1.9.12 | Vulnerable | Htmldoc Project |
- cpe:2.3:a:htmldoc_project:htmldoc:*:*:*:*:*:*:*:* Versions before 1.9.12 Vulnerable ·Htmldoc Project
Remediation
- Fix · CNA htmldoc Fixed in v1.9.12
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23165
- 2026-10-03 Alias added: GHSA-49mr-vrxv-hmwg
References
Exploit 2
More Htmldoc Project Htmldoc vulnerabilities
- TI-2024-30988 HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681. CVSS 3.1CRITICAL 9.8
- TI-2024-30543 HTMLDOC before 1.9.19 has an out-of-bounds write in parse_paragraph in ps-pdf.cxx because… CVSS 3.1CRITICAL 9.8
- TI-2021-13278 An Out of Bounds flaw was discovered in htmodoc 1.9.12 in function parse_tree() in… CVSS 3.1HIGH 7.8
- TI-2021-13277 A flaw was discovered in htmodoc 1.9.12 in function parse_paragraph in ps-pdf.cxx ,this… CVSS 3.1HIGH 7.8
- TI-2022-00080 Memory corruption in michaelrsweet htmldoc CVSS 3.1HIGH 7.5
- TI-2021-05939 Double free in htmldoc CVSS 3.1CRITICAL 9.8
Sources
- CVE-2021-23165 · CVE Program
- CVE-2021-23165 · NVD
- FIRST EPSS
- GHSA-49mr-vrxv-hmwg · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23165 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences