CVE-2021-46822: libjpeg-turbo Out-of-bounds Write
Vulnerability summary
CVE-2021-46822 is a medium (CVSS 5.5) Out-of-bounds Write vulnerability in libjpeg-turbo. EPSS estimates a 1.08% chance of exploitation in the next 30 days, higher than 66.1% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 18-06-2022PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.08%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.08% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat9 products
- libjpeg-turbo< 0:2.0.90-6.el9_1
- libjpeg-turbo-debuginfo< 0:2.0.90-6.el9_1
- libjpeg-turbo-debugsource< 0:2.0.90-6.el9_1
- libjpeg-turbo-devel< 0:2.0.90-6.el9_1
- libjpeg-turbo-utils< 0:2.0.90-6.el9_1
Debian1 product
- libjpeg-turbo< 1:2.1.1-1
Libjpeg-turbo1 product
- libjpeg-turbo> 1.5.3, ≤ 2.0.90
Mageia1 product
- libjpeg< 2.0.8-1.mga8
Ubuntu1 product
- libjpeg-turbo< 2.0.3-0ubuntu1.20.04.3
5 vendors · 13 products
References
15 links- github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2X Refsource MISCPatchThird Party Advisory
- exchange.xforce.ibmcloud.com/vulnerabilities/221567X Refsource MISCARTICLEREPORTThird Party AdvisoryVDB Entry