Out-of-bounds Write Affecting htmldoc package, versions <1.8.27-8ubuntu1.1+esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
5.26% (90th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU1604-HTMLDOC-1926071
  • published22 Mar 2026
  • disclosed10 Jan 2022

Introduced: 10 Jan 2022

CVE-2021-43579  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Ubuntu:16.04 htmldoc to version 1.8.27-8ubuntu1.1+esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream htmldoc package and not the htmldoc package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 relevant fixed versions and status.

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

CVSS Base Scores

version 3.1