Every CVE Search/ Get API key

CVE-2021-23165

A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in...

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

3.51%Up 2.0 points since Mar 17, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2021-23165
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
10.0 HighAV:N/AC:L/Au:N/C:C/I:C/A:C
Weakness
CWE-122, CWE-787
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-23165
Weakness
CWE-122
Updated
2026-11-02
EUVDEUVD-2021-10275 No score

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.

Record
EUVD-2021-10275
Updated
2026-11-03
GitHub AdvisoriesGHSA-49mr-vrxv-hmwg 9.8

A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in...

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.

Record
GHSA-49mr-vrxv-hmwg
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-122, CWE-787
Updated
2026-11-02
OSV 9.8

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.

Record
CVE-2021-23165
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-23165 9.8

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.

Record
DEBIAN-CVE-2021-23165
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2021-23165 9.8

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.

Record
UBUNTU-CVE-2021-23165
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2021-0332 No score

Updated htmldoc packages fix security vulnerabilities

Updated htmldoc packages fix security vulnerabilities:

Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181 (CVE-2021-20308).

AddressSanitizer: double-free in function pspdf_export ps-pdf.cxx (CVE-2021-23158).

AddressSanitizer: heap-buffer-overflow in pspdf_prepare_outpages() in ps-pdf.cxx (CVE-2021-23165).

AddressSanitizer: SEGV in file_extension file.c (CVE-2021-23180).

AddressSanitizer: SEGV on unknown address 0x000000000014 (CVE-2021-23191).

AddressSanitizer: stack-buffer-overflow in parse_table ps-pdf.cxx (CVE-2021-23206).

AddressSanitizer: heap-buffer-overflow in pspdf_prepare_page(int) ps-pdf.cxx (CVE-2021-26252).

AddressSanitizer: heap-buffer-overflow on render_table_row() ps-pdf.cxx (CVE-2021-26259).

SEGV on unknown address 0x000000000000 (CVE-2021-26948).

Record
MGASA-2021-0332
Updated
2026-11-02
OSVUSN-5438-1 No score

htmldoc vulnerability

It was discovered that HTMLDOC did not properly manage memory under certain circumstances. If a user were tricked into opening a specially crafted HTML file, a remote attacker could possibly use this issue to cause HTMLDOC to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-5438-1
Updated
2026-11-02
OSVUSN-5438-2 No score

htmldoc vulnerability

USN-5438-1 fixed a vulnerability in HTMLDOC. This update provides the corresponding update for Ubuntu 14.04 ESM and Ubuntu 16.04 ESM.

Original advisory details:

It was discovered that HTMLDOC did not properly manage memory under certain circumstances. If a user were tricked into opening a specially crafted HTML file, a remote attacker could possibly use this issue to cause HTMLDOC to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-5438-2
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
htmldoc
Debian:12
before 1.9.11-4
1.9.11-4
htmldoc
Debian:13
before 1.9.11-4
1.9.11-4
htmldoc
Debian:14
before 1.9.11-4
1.9.11-4
htmldoc
Debian:9
From an advisory covering 10 CVEs
before 1.8.27-8+deb9u1, plus listed versions
1.8.27-8
1.8.27-8+deb9u1
htmldoc
Debian:10
From an advisory covering 8 CVEs
before 1.9.3-1+deb10u2, plus listed versions
1.9.3-11.9.3-1+deb10u1
1.9.3-1+deb10u2
htmldoc
Mageia:7
From an advisory covering 9 CVEs
before 1.9.3-2.3.mga7
1.9.3-2.3.mga7
htmldoc
Mageia:8
From an advisory covering 9 CVEs
before 1.9.8-1.2.mga8
1.9.8-1.2.mga8
htmldoc
Ubuntu:Pro:14.04:LTS
before 1.8.27-8ubuntu1+esm2, plus listed versions
1.8.27-8ubuntu11.8.27-8ubuntu1+esm1
1.8.27-8ubuntu1+esm2
htmldoc
Ubuntu:Pro:16.04:LTS
before 1.8.27-8ubuntu1.1+esm1, plus listed versions
1.8.27-8ubuntu11.8.27-8ubuntu1.1
1.8.27-8ubuntu1.1+esm1
htmldoc
Ubuntu:18.04:LTS
before 1.9.2-1ubuntu0.2, plus listed versions
1.8.27-8ubuntu21.8.27-8ubuntu31.9.2-11.9.2-1ubuntu0.1
1.9.2-1ubuntu0.2
htmldoc
Ubuntu:20.04:LTS
before 1.9.7-1ubuntu0.3, plus listed versions
1.9.3-11.9.7-11.9.7-1build11.9.7-1ubuntu0.2
1.9.7-1ubuntu0.3

History

History
RecordedChangedSources
affected, facts
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-23165 is a critical vulnerability (CVSS 9.8) in Htmldoc Project Htmldoc, published June 9, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.51%, the 89th percentile. Fixed in htmldoc 1.9.11-4.

References

Show 11 moreShow less
MoveEnter Open