CVE-2021-23158: htmldoc_project htmldoc Double Free
CVSS: 9.8v3.1CriticalModified
AliasesUBUNTU-CVE-2021-23158DEBIAN-CVE-2021-23158
Published 16-03-2022Last modified 03-08-2024
Vulnerability summary
CVE-2021-23158 is a critical (CVSS 9.8) Double Free vulnerability in htmldoc_project htmldoc. EPSS estimates a 2.44% chance of exploitation in the next 30 days, higher than 84.1% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
2.44%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Advisory lineage
Upstream 0 · Downstream 4 · Related 1Timeline
- 16-03-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
4 scores · 3 sources · 2 versionsCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 3 agree
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
High 7.5Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
2.44%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
0.00 pp
From 2.44% on 22-09-2026
22-09-202622-10-2026
EPSS score2.44%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundHtmldoc
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- htmldoc< 1.9.11-4
Htmldoc_project1 product
- htmldoc1.9.12
Ubuntu1 product
- htmldoc< 1.8.27-8ubuntu1+esm3 | < 1.8.27-8ubuntu1.1+esm2 | < 1.9.2-1ubuntu0.2+esm1 | < 1.9.7-1ubuntu0.3+esm1
3 vendors · 3 products
References
7 links- github.com/michaelrsweet/htmldoc/issues/414X Refsource MISCREPORTExploitIssue TrackingThird Party Advisory
- github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdcX Refsource MISCREPORTPatchThird Party Advisory