Vulnerabilities / CVE-2021-23158

critical

CVE-2021-23158

A flaw was found in htmldoc in v1.9.12. Double-free in function pspdf_ ...

Published Modified CWE 415
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
debian 10htmldoc1.9.3-1+deb10u2
debian 11htmldoc1.9.11-4
debian 12htmldoc1.9.11-4
debian 13htmldoc1.9.11-4
debian 14htmldoc1.9.11-4
debian 9htmldoc1.8.27-8+deb9u1
echohtmldoc1.9.11-4
ubuntu 16.04-ESMhtmldoc1.8.27-8ubuntu1.1+esm2
ubuntu 18.04-ESMhtmldoc1.9.2-1ubuntu0.2+esm1
ubuntu 20.04-ESMhtmldoc1.9.7-1ubuntu0.3+esm1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.