Use After Free Affecting pillow package, versions [11.3.0,12.3.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.46% (39th 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-21277800
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditJoshua Rogers

Introduced: 19 Oct 2026

NewCVE-2026-112396  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade pillow to version 12.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free via ImagingLibTiffEncode in src/libImaging/TiffDecode.c when a libtiff encode error occurs. The cleanup logic in the error path frees or closes TIFF resources (calling TIFFCleanup/TIFFClose or free(clientstate->data)) without nulling the corresponding pointers, while the dedicated cleanup function ImagingLibTiffEncodeCleanup subsequently operates on those already-freed resources. An attacker who can trigger a TIFF encode error can exploit this use-after-free condition to crash the process.

CVSS Base Scores

version 4.0
version 3.1