Buffer Overflow Affecting htmldoc package, versions <1.8.27-8ubuntu1.1+esm2


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.1% (28th 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 IDSNYK-UBUNTU1604-HTMLDOC-1912113
  • published22 Mar 2026
  • disclosed3 Nov 2021

Introduced: 3 Nov 2021

CVE-2021-40985  (opens in a new tab)
CWE-120  (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 under-read in htmldoc before 1.9.12, allows attackers to cause a denial of service via a crafted BMP image to image_load_bmp.

CVSS Base Scores

version 3.1