Use-after-free in Pillow - #VU158901

 

Use-after-free in Pillow - #VU158901

Published: November 3, 2026


Vulnerability identifier: #VU158901
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to cause writes to freed memory, which may result in a denial of service.

The vulnerability exists due to use-after-free in Pillow's libtiff encoder error handling when an in-memory TIFF encoding operation fails and subsequent cleanup flushes the TIFF after its output buffer has been freed. A local user can trigger an affected encoding failure to leave a live TIFF handle referencing freed output memory, allowing later cleanup to write into that memory and potentially crash the process.


Affected software

Pillow

Remediation

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins