CVE-2021-28675
Python vulnerability analysis and mitigation

Overview

An issue was discovered in Pillow before version 8.2.0, identified as CVE-2021-28675. The vulnerability exists in PSDImagePlugin.PsdImageFile, which lacked a sanity check on the number of input layers relative to the size of the data block. This vulnerability was discovered in early 2021 and affects Python's Pillow library (NVD, CVE).

Technical details

The vulnerability stems from a missing validation check in the PSDImagePlugin.PsdImageFile component. The issue could be triggered during the image opening process, specifically before the Image.load operation. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, indicating local attack vector, low attack complexity, no privileges required, and user interaction required (NVD).

Impact

The primary impact of this vulnerability is the potential for a Denial of Service (DoS) attack. When exploited, the vulnerability could cause the application to become unresponsive during the Image.open operation, before Image.load is executed (Pillow Docs).

Mitigation and workarounds

The vulnerability was fixed in Pillow version 8.2.0. Users are advised to upgrade to this version or later to address the security issue. The fix involves implementing proper sanity checks for the number of input layers in relation to the data block size (Pillow Docs, Gentoo 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-66645HIGH7.5
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-66470MEDIUM6.1
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-66469MEDIUM6.1
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-67502MEDIUM5.4
  • PythonPython
  • taguette
NoYesDec 09, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 09, 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