LiveActive security incident?Get immediate response
CVE Record

CVE-2021-46822: The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PP...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-46822 is a memory-safety flaw in libjpeg-turbo's PPM/PGM image loading path. A specially formed 16-bit PPM or PGM file can cause a heap buffer overflow when loaded through specific tjLoadImage conversions. Business urgency depends on whether systems process untrusted PPM/PGM files.

Executive priority

Handle as a dependency exposure review, not an emergency based on current evidence. Give priority to public-facing or automated image-processing systems that accept obscure image formats from users or partners.

Technical view

The issue affects libjpeg-turbo through 2.0.90. The PPM reader mishandles tjLoadImage when loading a 16-bit binary PPM into a grayscale buffer or a 16-bit binary PGM into an RGB buffer, related to get_word_rgb_row in rdppm.c. The CVE record gives no CVSS, CWE, or detailed affected CPEs.

Likely exposure

Exposure is most likely in applications, services, or tools that embed libjpeg-turbo and accept untrusted PPM or PGM image files. Systems limited to common JPEG processing only are not clearly exposed from the supplied evidence.

Exploitation context

The source bundle does not show CISA KEV listing, active exploitation, or public exploit activity. Exploitation would require a malicious 16-bit binary PPM or PGM file to reach the vulnerable libjpeg-turbo loading path.

Researcher notes

Evidence is specific but incomplete: the CVE identifies the vulnerable conversion cases and code area, but provides no CVSS, CWE, CPEs, or exploitation status. Use the referenced upstream commit and vendor/package metadata to map fixed versions.

Mitigation direction

  • Inventory libjpeg-turbo usage and identify versions through 2.0.90.
  • Prioritize systems that process untrusted PPM or PGM files.
  • Check libjpeg-turbo or package vendor guidance for fixed releases.
  • Restrict or reject untrusted 16-bit binary PPM and PGM inputs where feasible.
  • Monitor image-processing services for crashes or abnormal memory failures.

Validation and detection

  • Confirm whether applications call tjLoadImage for PPM or PGM inputs.
  • Check installed libjpeg-turbo package versions against 2.0.90 or earlier.
  • Review upload pipelines for accepted PPM and PGM file types.
  • Validate vendor advisories or package changelogs before closing remediation.
  • Regression-test legitimate image workflows after updating or filtering inputs.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-46822 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.