CVE-2021-46822: libjpeg-turbo Out-of-bounds Write
CVSS: 5.5v3.1MediumModified
AliasesMGASA-2022-0353RHSA-2023:1068UBUNTU-CVE-2021-46822DEBIAN-CVE-2021-46822
Published 18-06-2022Last modified 04-08-2024
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 64.4% of scored vulnerabilities.
CVSS score
5.5/10
010
Medium · v3.1 (NVD)EPSS score
1.08%
0%100%
Low · +0.02 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
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 versionsMedium 5.5Preferred score · NVD (NIST)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HSourcesAll 4 agree
- 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
Medium 4.3Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:N/I:N/A:PSourcesSingle source
EPSS trend
Probability
1.08%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
+0.02 pp
From 1.05% on 18-09-2026
18-09-202618-10-2026
EPSS score1.08%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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