Buffer overflow in Libjpeg-Turbo

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.

Vulnerability class: Buffer Overflow

EPSS: 0.010 (59.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-46822?
CVE-2021-46822 is a medium-severity vulnerability in Libjpeg-Turbo, classified under Out-of-bounds Write. CVSS score: 5.5/10. Published 2022-06-18.
How severe is CVE-2021-46822?
Medium severity. CVSS v3 base score is 5.5 out of 10.
Is CVE-2021-46822 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.