CVE-2021-23158
published 2022-03-16CVE-2021-23158: 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…
PriorityP352critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
2.28%
81.0th percentile
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.
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | htmldoc | < htmldoc 1.9.11-4 (bookworm) | htmldoc 1.9.11-4 (bookworm) |
| htmldoc_project | htmldoc | — | — |
| htmldoc_project | htmldoc | — | — |
| htmldoc_project | htmldoc | >= 0 < 1.9.11-4 | 1.9.11-4 |
| htmldoc_project | htmldoc | >= 0 < 1.9.11-4 | 1.9.11-4 |
| htmldoc_project | htmldoc | >= 0 < 1.9.11-4 | 1.9.11-4 |
| htmldoc_project | htmldoc | >= 0 < 1.9.11-4 | 1.9.11-4 |
| htmldoc_project | htmldoc | >= 0 < 1.8.27-8ubuntu1+esm3 | 1.8.27-8ubuntu1+esm3 |
| htmldoc_project | htmldoc | >= 0 < 1.8.27-8ubuntu1.1+esm2 | 1.8.27-8ubuntu1.1+esm2 |
| htmldoc_project | htmldoc | >= 0 < 1.9.2-1ubuntu0.2+esm1 | 1.9.2-1ubuntu0.2+esm1 |
| htmldoc_project | htmldoc | >= 0 < 1.9.7-1ubuntu0.3+esm1 | 1.9.7-1ubuntu0.3+esm1 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8LOW
vendor_ubuntu9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
HTMLDOC vulnerabilities
osv·2025-01-08·CVSS 9.8
CVE-2021-20308 [CRITICAL] HTMLDOC vulnerabilities
HTMLDOC vulnerabilities
It was discovered that HTMLDOC incorrectly handled certain inputs, which
could lead to an integer overflow. An attacker could potentially use this
issue to cause a denial of service or execute arbitrary code.
(CVE-2021-20308)
It was discovered that HTMLDOC incorrectly handled memory in pspdf_export,
which could lead to a double-free. An attacker could potentially use this
issue to cause a denial of service or execute arbitrary code.
(CVE-2021-23158)
It was discovered that HTMLDOC incorrectly handled memory when loading a
JPEG image, which could lead to a NULL pointer dereference. An attacker
could potentially use this issue to cause a denial of service.
(CVE-2021-23191, CVE-2021-26948)
It was discovered that HTMLDOC incorrectly handled certain inputs, which
coul
GHSA
GHSA-hgcq-f5fx-5qp6: A flaw was found in htmldoc in v1
ghsa_unreviewed·2022-03-17
CVE-2021-23158 [CRITICAL] CWE-415 GHSA-hgcq-f5fx-5qp6: A flaw was found in htmldoc in v1
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.
OSV
CVE-2021-23158: A flaw was found in htmldoc in v1
osv·2022-03-16·CVSS 9.8
CVE-2021-23158 [CRITICAL] CVE-2021-23158: A flaw was found in htmldoc in v1
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.
Ubuntu
HTMLDOC vulnerabilities
vendor_ubuntu·2025-01-08·CVSS 9.8
CVE-2021-34121 [CRITICAL] HTMLDOC vulnerabilities
Title: HTMLDOC vulnerabilities
Summary: Several security issues were fixed in HTMLDOC.
It was discovered that HTMLDOC incorrectly handled certain inputs, which
could lead to an integer overflow. An attacker could potentially use this
issue to cause a denial of service or execute arbitrary code.
(CVE-2021-20308)
It was discovered that HTMLDOC incorrectly handled memory in pspdf_export,
which could lead to a double-free. An attacker could potentially use this
issue to cause a denial of service or execute arbitrary code.
(CVE-2021-23158)
It was discovered that HTMLDOC incorrectly handled memory when loading a
JPEG image, which could lead to a NULL pointer dereference. An attacker
could potentially use this issue to cause a denial of service.
(CVE-2021-23191, CVE-2021-26948)
It was discov
Debian
CVE-2021-23158: htmldoc - A flaw was found in htmldoc in v1.9.12. Double-free in function pspdf_export(),i...
vendor_debian·2021·CVSS 9.8
CVE-2021-23158 [CRITICAL] CVE-2021-23158: htmldoc - A flaw was found in htmldoc in v1.9.12. Double-free in function pspdf_export(),i...
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.
Scope: local
bookworm: resolved (fixed in 1.9.11-4)
bullseye: resolved (fixed in 1.9.11-4)
forky: resolved (fixed in 1.9.11-4)
sid: resolved (fixed in 1.9.11-4)
trixie: resolved (fixed in 1.9.11-4)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://bugzilla.redhat.com/show_bug.cgi?id=1967018https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdchttps://github.com/michaelrsweet/htmldoc/issues/414https://bugzilla.redhat.com/show_bug.cgi?id=1967018https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdchttps://github.com/michaelrsweet/htmldoc/issues/414
2022-03-16
Published