VYPR
High severityNVD Advisory· Published Nov 14, 2022· Updated Aug 3, 2024

CVE-2022-45199

CVE-2022-45199

Description

Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Pillow before 9.3.0 allows denial of service via a crafted TIFF image with an oversized SAMPLESPERPIXEL tag.

Vulnerability

Overview

Pillow versions prior to 9.3.0 are vulnerable to a denial-of-service condition via the SAMPLESPERPIXEL tag in TIFF images. A crafted TIFF file with an excessively large value for SAMPLESPERPIXEL can cause excessive memory allocation and runtime during image decoding [1][4]. The issue was introduced in Pillow 9.2.0 and was fixed by limiting SAMPLESPERPIXEL to the number of planes the decoder can handle [1][4].

Exploitation

An attacker can exploit this vulnerability by supplying a specially crafted TIFF image to an application that uses Pillow to process images. No authentication is required; the image only needs to be opened or decoded by Pillow. The attack vector is remote if the application processes user-supplied images [1][4].

Impact

Successful exploitation leads to a denial of service, potentially consuming excessive memory or CPU time, which may cause the application to hang or crash [1][4].

Mitigation

Users should upgrade to Pillow 9.3.0 or later, which includes the fix that caps SAMPLESPERPIXEL to prevent the runtime denial of service [1][4].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
pillowPyPI
>= 9.2.0, < 9.3.09.3.0

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

8

News mentions

0

No linked articles in our index yet.