All reports
High

Pillow subject to DoS via SAMPLESPERPIXEL tag

Affected versions

Version ranges need review.

Affected versions
>=9.2.0 <9.3.0
Fixed version
9.3.0
Affected versions
>= 9.2.0, < 9.3.0
Fixed version
9.3.0

Exploitation

CVE-2022-45199

Probability of exploitation in the next 30 days: 1.50%

FIRST EPSS · 2026-11-22

Description

Pillow starting with 9.2.0 and prior to 9.3.0 allows denial of service via SAMPLESPERPIXEL. A large value in the SAMPLESPERPIXEL tag could lead to a memory and runtime DOS in TiffImagePlugin.py when setting up the context for image decoding. This issue has been patched in version 9.3.0.

Links