CVE & CISA-KEV Catalog

CVE-2021-46822

MEDIUM
5.5
CVSS v3
NVD

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.

How to fix

Remediation Available
libjpeg-turboDebian
Fixed in:1:2.1.1-1CVE-2021-46822
Fixed in:1:2.1.1-1CVE-2021-46822
Fixed in:1:2.1.1-1CVE-2021-46822
libjpeg-turboUbuntu
Fixed in:1.5.2-0ubuntu5.18.04.6USN-5631-1
Fixed in:2.0.3-0ubuntu1.20.04.3USN-5631-1
libjpeg-turbo8Ubuntu
Fixed in:1.5.2-0ubuntu5.18.04.6USN-5631-1
Fixed in:2.0.3-0ubuntu1.20.04.3USN-5631-1
libturbojpegUbuntu
Fixed in:1.5.2-0ubuntu5.18.04.6USN-5631-1
Fixed in:2.0.3-0ubuntu1.20.04.3USN-5631-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

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

Exploit Intelligence

1.01%probability of exploitation in 30 days
59thpercentile

Moderate risk: more likely to be exploited than 59% of all known CVEs.

References

Third-Party Advisory1

Related Vulnerabilities

Other CWE-787 (Out-of-bounds Write) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-22457Critical9.0100%KEV + RansomFix
CVE-2025-0282Critical9.0100%KEV + Ransom-
CVE-2015-3113Critical9.8100%KEVFix
CVE-2021-20038Critical9.8100%KEV + Ransom-
CVE-2023-4863High8.8100%KEVFix
CVE-2020-16040Medium6.5100%-Fix
Embed a live status badge for CVE-2021-46822
CVE-2021-46822 severity badge

Markdown

[![CVE-2021-46822](https://tridentstack.com/cve/badge/CVE-2021-46822.svg)](https://tridentstack.com/cve/CVE-2021-46822)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-46822"><img src="https://tridentstack.com/cve/badge/CVE-2021-46822.svg" alt="CVE-2021-46822"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.