CVE-2021-25291
Python vulnerability analysis and mitigation

Overview

An issue was discovered in Pillow before version 8.1.1, identified as CVE-2021-25291. The vulnerability exists in the TiffDecode.c file, specifically in the TiffreadRGBATile function, where an out-of-bounds read could occur due to invalid tile boundaries (Debian Tracker).

Technical details

The vulnerability is present in the TiffDecode.c component of Pillow, where invalid tile boundaries could lead to an out-of-bounds read in TIFFReadRGBATile. The issue has been assigned a CVSS 3 Severity Score of 7.5 (High) (Ubuntu Security, Pillow Docs).

Impact

If a user or automated system were tricked into opening a specially-crafted Tiff file, a remote attacker could cause Pillow to crash, resulting in a denial of service, or possibly execute arbitrary code (Ubuntu Notice).

Mitigation and workarounds

The vulnerability has been fixed in Pillow version 8.1.1 and later. Users are advised to update their Pillow installations to the latest version. For Ubuntu systems, standard system updates will make all the necessary changes to address this vulnerability (Ubuntu Notice, Pillow Docs).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • py3-urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management