CVE-2021-46822

MEDIUMCVSS 5.5/10EPSS 1.00%

Last modified

CVE-2021-46822 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 1.00% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
5.5/10

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

EPSS Probability
1.00%

58.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
Libjpeg-TurboLibjpeg-Turbo> 1.5.3, <= 2.0.90

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-46822?
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.
How severe is CVE-2021-46822?
CVE-2021-46822 has a CVSS score of 5.5/10 (MEDIUM severity). The EPSS model estimates a 1.00% probability of exploitation in the next 30 days.
How do I fix CVE-2021-46822?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-46822?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST