Stack-based buffer overflow in HTMLDOC - CVE-2019-19630

 

Stack-based buffer overflow in HTMLDOC - CVE-2019-19630

Published: December 9, 2019 / Updated: June 10, 2021


Vulnerability identifier: #VU23464
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-19630
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists in the "hd_strlcpy()" function in "string.c" (when called from "render_contents" in "ps-pdf.cxx") due to a boundary error when processing a crafted HTML document. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system

Affected software

HTMLDOC
Fedora
Ubuntu
htmldoc (Ubuntu package)
htmldoc

How to mitigate CVE-2019-19630

Install update from vendor's website.

HTMLDOC - update to 1.9.8
htmldoc (Ubuntu package) - addressed in versions 1.8.27-8ubuntu1.1, 1.9.2-1ubuntu0.1
htmldoc - addressed in versions 1.8.28-6.el7, 1.9.7-1.fc30, 1.9.7-1.fc31

External References

Related Security Bulletins