Out-of-bounds Write Affecting libjpeg-turbo package, versions <1:2.1.1-1


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
1.08% (65th 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-ECHOLATEST-LIBJPEGTURBO-19643787
  • published8 Sept 2026
  • disclosed18 Jun 2022

Introduced: 18 Jun 2022

CVE-2021-46822  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Echo:latest libjpeg-turbo to version 1:2.1.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libjpeg-turbo package and not the libjpeg-turbo package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.

CVSS Base Scores

version 3.1