Buffer Over-read Affecting pillow package, versions [,13.0.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PILLOW-21277797
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditAarni Koskela

Introduced: 19 Oct 2026

NewCVE-2026-112394  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade pillow to version 13.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Over-read via incorrect row size calculation for P;2L and P;4L raw decode modes in RawDecode.c and decode.c. When decoding images using these bit-plane palette raw modes, the buffer size is computed using pixel-based bit arithmetic rather than the correct bit-plane row size, resulting in an incorrectly sized decode buffer. An attacker can supply a malformed image that triggers a buffer over-read, leading to an information disclosure of a small amount of heap memory or a crash.

CVSS Base Scores

version 4.0
version 3.1