CVE-2021-23165: htmldoc - Heap Buffer Overflow
- Cve: CVE-2021-23165
- Name: htmldoc - Heap Buffer Overflow
- 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.
- Impact: Attackers can execute arbitrary code or cause denial of service by exploiting the buffer overflow.
- Remediation: Update to version 1.9.12 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.03512
- Epss percentile: 0.89408
- Assignee: [email protected]
- Published at: 2022-03-16T15:15:10Z
- Age in days: 1714
- Modified at: 2026-06-17T03:38:21Z
- Patch available: yes
- Public exploits total: 2
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-23165
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
| CWE-787 | Out-of-bounds Write |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1967014 | nvd | 2022-03-16 |
| https://github.com/michaelrsweet/htmldoc/issues/413 | nvd | 2022-03-16 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1967014 | Exploit, Issue Tracking, Patch, Third Party Advisory |
| https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f | Patch, Third Party Advisory |
| https://github.com/michaelrsweet/htmldoc/issues/413 | Exploit, Issue Tracking, Third Party Advisory |
| https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| htmldoc_project:htmldoc | < 1.9.12 | no | nvd | /v1/products/htmldoc_project/htmldoc |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| michaelrsweet/htmldoc | commit, issues | yes | /v1/repositories/michaelrsweet/htmldoc |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2022-03-16
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts