CVE-2021-25292
Python vulnerability analysis and mitigation

Overview

CVE-2021-25292 is a vulnerability discovered in Pillow (Python Imaging Library) versions before 8.1.1. The vulnerability was disclosed on March 1, 2021, affecting the PDF parser component of the software. This security issue allows attackers to perform a regular expression Denial of Service (ReDoS) attack through a specially crafted PDF file (Debian Security, Pillow Docs).

Technical details

The vulnerability stems from a catastrophic backtracking regex pattern in the PDF parser component. The issue was introduced in Pillow version 5.1.0 and was assigned a CVSS score of 6.5 (Medium severity). The vulnerability is classified under CWE-20: Improper Input Validation (Ubuntu Security, Debian Security).

Impact

When exploited, this vulnerability can lead to a Denial of Service (DoS) condition through regular expression processing of maliciously crafted PDF files. The attack specifically targets the application's PDF parsing functionality, potentially causing the application to become unresponsive (Rapid7).

Mitigation and workarounds

The vulnerability was fixed in Pillow version 8.1.1. Users are advised to upgrade to this version or later to mitigate the risk. Various Linux distributions have also released security updates to address this vulnerability in their packaged versions (Pillow Docs, Debian Security).

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-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 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