Critical severity · published Mar 16, 2022
CVE-2021-23158
A flaw was found in htmldoc in v1.9.12
9.8
CVSS
2.4%
EPSS
No
On KEV
Description
A flaw was found in htmldoc in v1.9.12. Double-free in function pspdf_export(),in ps-pdf.cxx may result in a write-what-where condition, allowing an attacker to execute arbitrary code and denial of service.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.4% · higher than 84% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HT
Htmldoc · Htmldoc Project
1.9.12 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-23158
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-23158
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=1967018
Patch
https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc
Exploit
https://github.com/michaelrsweet/htmldoc/issues/414
More from Htmldoc
9.8
CVE-2024-46478
HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681
9.8
CVE-2024-45508
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
9.8
CVE-2021-23165
A flaw was found in htmldoc before v1.9.12
9.8
CVE-2021-20308
Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181
7.8
CVE-2021-34121
An Out of Bounds flaw was discovered in htmodoc 1.9.12 in function parse_tree() in toc.cxx, this possibly leads to memory layout information leaking in the data
