Buffer Overflow Affecting htmldoc package, versions <1.9.7-1ubuntu0.3+esm1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.94% (59th 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-UBUNTU2004-HTMLDOC-1912109
  • published20 Feb 2025
  • 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:20.04 htmldoc to version 1.9.7-1ubuntu0.3+esm1 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:20.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