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).

Exploitability

The vulnerability requires user interaction to exploit, as it involves processing a specially crafted PSD image file. The attack vector is local, meaning the attacker needs local access to the system or needs to convince a user to process a malicious file (NVD).

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-2026-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 2026
CVE-2026-55468MEDIUM4.3
  • Python logoPython
  • wagtail
NoYesAug 24, 2026

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