5.5

CVE-2021-46822: libjpeg-turbo Out-of-bounds Write

CVSS: 5.5v3.1MediumModified
AliasesMGASA-2022-0353RHSA-2023:1068UBUNTU-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.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
1.08%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 18-06-2022
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last 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

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 score
1.08%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
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
Show all 15 references