Integer Overflow or Wraparound Affecting htmldoc package, versions <1.8.27-8+deb9u3


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.06% (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-DEBIAN9-HTMLDOC-2813582
  • published11 May 2022
  • disclosed9 May 2022

Introduced: 9 May 2022

CVE-2022-27114  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Debian:9 htmldoc to version 1.8.27-8+deb9u3 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 Debian. See How to fix? for Debian:9 relevant fixed versions and status.

There is a vulnerability in htmldoc 1.9.16. In image_load_jpeg function image.cxx when it calls malloc,'img->width' and 'img->height' they are large enough to cause an integer overflow. So, the malloc function may return a heap blosmaller than the expected size, and it will cause a buffer overflow/Address boundary error in the jpeg_read_scanlines function.

CVSS Scores

version 3.1