Heap-based Buffer Overflow Affecting michaelrsweet/htmldoc package, versions [,1.9.12)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (64th 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-UNMANAGED-MICHAELRSWEETHTMLDOC-2414082
  • published2 Mar 2022
  • disclosed1 Mar 2022
  • creditchibataiki

Introduced: 1 Mar 2022

CVE-2021-26252  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade michaelrsweet/htmldoc to version 1.9.12 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the pspdf_prepare_page() function, in ps-pdf.cxx, which may lead to execute arbitrary code and denial of service.

CVSS Scores

version 3.1