CVE-2021-23165 Memory corruption in htmldoc

Critical 9.8 Published Updated

Heap buffer overflow 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-23165?

CVE-2021-23165 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 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.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2021-23165?

It affects 1 product.

Products include Htmldoc Project Htmldoc.

How do I fix CVE-2021-23165?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-23165 being exploited?

There is no known exploitation of CVE-2021-23165 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-23165, GHSA-49mr-vrxv-hmwg, UBUNTU-CVE-2021-23165, USN-5438-1, USN-5438-2.

Is CVE-2021-23165 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free