CVE-2021-46822 json
The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit...
published 2022-06-18 4 y ago modified 2026-07-23 3 mo ago also EUVD-2021-33478 , JLSEC-2025-180
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia JpegTurbo_jll 2.1.0+0
- libjpeg-turbo Debian 14, Debian 13, Debian 12 1:2.1.1-1
debian advisories DEBIAN-CVE-2021-46822
- libjpeg-turbo Ubuntu 20.04 LTS 2.0.3-0ubuntu1.20.04.3
ubuntu advisories UBUNTU-CVE-2021-46822
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libjpeg-turbo RHEL 9 2.0.90-6.el9_1
- turbojpeg RHEL 9 2.0.90-6.el9_1
- libjpeg-turbo-utils RHEL 9 2.0.90-6.el9_1
red hat advisories RHSA-2023:1068
- libjpeg-turbo AlmaLinux 9 2.0.90-6.el9_1
- turbojpeg AlmaLinux 9 2.0.90-6.el9_1
- libjpeg-turbo-utils AlmaLinux 9 2.0.90-6.el9_1
almalinux advisories ALSA-2023:1068
- libjpeg-turbo Rocky Linux 9 2.0.90-6.el9_1
rocky linux advisories RLSA-2023:1068
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-46822 updated cvss 5.5
libjpeg-turbo: heap buffer overflow in get_word_rgb_row() in rdppm.c
-
Red Hat CodeReady Linux Builder (v. 9) turbojpeg 2.0.90-6.el9_1 Red Hat Enterprise Linux AppStream (v. 9) libjpeg-turbo 2.0.90-6.el9_1, libjpeg-turbo-utils 2.0.90-6.el9_1fixed: vendor fix RHSA-2023:1068
-
Red Hat Enterprise Linux 6 libjpeg-turbo Red Hat Enterprise Linux 7 turbojpeg, libjpeg-turbo, libjpeg-turbo-utils Red Hat Enterprise Linux 8 turbojpeg, libjpeg-turbo, libjpeg-turbo-utilsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.08% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | JpegTurbo_jll | <2.1.0+0 |
2.1.0+0 |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2
patch, third-party-advisory, web
-
exchange.xforce.ibmcloud.com
/vulnerabilities/221567
third-party-advisory, vdb-entry, web
Sources
- CVE List CVE-2021-46822
- NVD CVE-2021-46822
- OSV JLSEC-2025-180
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.