Read the docs
TI-2021-21515 Aliases CVE-2021-46822GHSA-p468-hq86-gghc

The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading…

Priority LOW 27CWE-787Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.

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.

Why it matters now

EPSS 0.01076 65th percentileScored 2026-11-07
Fix Fixed Red Hat: 1 advisory

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:*after 1.5.3, up to 2.0.90VulnerableLibjpeg-turbo
  • cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:* Versions after 1.5.3, up to 2.0.90 Vulnerable ·Libjpeg-turbo

Remediation

Red Hat 1 advisory

  • RHSA-2023:1068 Released 2023-03-06 · Red Hat rating Moderate
    libjpeg-turbo security update
    • Red Hat CodeReady Linux Builder (v. 9) turbojpeg-2.0.90-6.el9_1, turbojpeg-devel-2.0.90-6.el9_1
    • Red Hat Enterprise Linux AppStream (v. 9) libjpeg-turbo-2.0.90-6.el9_1, libjpeg-turbo-devel-2.0.90-6.el9_1, libjpeg-turbo-utils-2.0.90-6.el9_1

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat CodeReady Linux Builder (v. 9)Fixed RHSA-2023:1068
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2023:1068
Not affected: 3 products
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-46822
  2. 2026-10-03 Alias added: GHSA-p468-hq86-gghc

References

  • TI-2021-10123 libjpeg-turbo version 2.0.90 has a heap-based buffer over-read (2 bytes) in decompress_smooth_data in jdcoefct.c. CVSS 3.1HIGH 7.1
  • TI-2023-02627 Heap-based buffer overflow in libjpeg-turbo CVSS 3.1MEDIUM 6.5
  • TI-2016-03069 The cjpeg utility in libjpeg allows remote attackers to cause a denial of service (NULL… CVSS 3.0HIGH 8.8
  • TI-2020-13284 Libjpeg-turbo all version have a stack-based buffer overflow in the "transform" component. CVSS 3.1HIGH 8.8
  • TI-2018-14387 The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant… CVSS 3.0HIGH 8.8
  • TI-2020-10780 libjpeg-turbo 2.0.4, and mozjpeg 4.0.0, has a heap-based buffer over-read in… CVSS 3.1HIGH 8.1
See all 15 →

Sources