Heap-based buffer overflow in HTMLDOC - CVE-2021-23165

 

Heap-based buffer overflow in HTMLDOC - CVE-2021-23165

Published: June 10, 2021


Vulnerability identifier: #VU54035
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-23165
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error within the pspdf_prepare_outpages() function in ps-pdf.cxx. A remote attacker can pass specially crafted data to the application, trigger heap-based buffer overflow and crash the library.



Affected software

HTMLDOC
htmldoc (Debian package)
htmldoc (Ubuntu package)
htmldoc-common (Ubuntu package)
Ubuntu

How to mitigate CVE-2021-23165

Install updates from vendor's website.

HTMLDOC - update to 1.9.12
htmldoc (Debian package) - update to 1.9.3-1+deb10u2
htmldoc (Ubuntu package) - addressed in versions 1.9.2-1ubuntu0.2, 1.9.7-1ubuntu0.3
htmldoc-common (Ubuntu package) - addressed in versions 1.9.2-1ubuntu0.2, 1.9.7-1ubuntu0.3

External References

Related Security Bulletins