All reports
High

Buffer over-flow in Pillow

Affected versions

Version ranges need review.

Affected versions
>=9.1.0 <9.1.1 || =9.1.0
Fixed version
9.1.1
Affected versions
= 9.1.0
Fixed version
9.1.1

Exploitation

CVE-2022-30595

Probability of exploitation in the next 30 days: 2.35%

FIRST EPSS · 2026-11-24

Description

When reading a TGA file with RLE packets that cross scan lines, Pillow reads the information past the end of the first line without deducting that from the length of the remaining file data. This vulnerability was introduced in Pillow 9.1.0, and can cause a heap buffer overflow.

Opening an image with a zero or negative height has been found to bypass a decompression bomb check. This will now raise a SyntaxError instead, in turn raising a PIL.UnidentifiedImageError.

Links

Credits

  • sunSUNQ