Integer Overflow or Wraparound Affecting michaelrsweet/htmldoc Open this link in a new tab package, versions [0,]


0.0
high
  • Attack Complexity

    Low

  • Availability

    High

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-id

    SNYK-UNMANAGED-MICHAELRSWEETHTMLDOC-2812820

  • published

    10 May 2022

  • disclosed

    10 May 2022

  • credit

    Unknown

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in image_load_jpeg when it calls malloc,img->width and img->height which are larger enough. The malloc function may return a heap block smaller than the expected size, and it will cause a buffer overflow or Address boundary error in the jpeg_read_scanlines function.