CVE-2021-23158 Memory corruption in htmldoc
A double-free vulnerability in htmldoc allows attackers to execute arbitrary code or cause denial of service via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23158?
CVE-2021-23158 is a critical memory corruption vulnerability in htmldoc, published on 16 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-415
Which versions are affected by CVE-2021-23158?
It affects 1 product.
Products include Htmldoc Project Htmldoc.
How do I fix CVE-2021-23158?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-23158 being exploited?
There is no known exploitation of CVE-2021-23158 in the wild and no public exploit code.
Other vulnerabilities in htmldoc
Sources
Also known as DEBIAN-CVE-2021-23158, GHSA-hgcq-f5fx-5qp6, UBUNTU-CVE-2021-23158.