Out-of-bounds Write Affecting libjpeg-turbo package, versions [,2.0.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (56th 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-LIBJPEGTURBO-2317732
  • published14 Dec 2021
  • disclosed21 Dec 2018
  • creditUnknown

Introduced: 21 Dec 2018

CVE-2018-20330  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade libjpeg-turbo to version 2.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based buffer overflow via a BMP image because multiplication of pitch and height is mishandled, as demonstrated by tjbench.

References

CVSS Base Scores

version 3.1