CVE-2021-28678
Python vulnerability analysis and mitigation

Overview

CVE-2021-28678 is a security vulnerability discovered in Pillow before version 8.2.0. The issue affects the BlpImagePlugin component, where it did not properly check that reads after jumping to file offsets returned data (NVD, Pillow Docs). This vulnerability was first introduced in Pillow 5.1.0 and was fixed in version 8.2.0, released on April 1, 2021.

Technical details

The vulnerability has a CVSS v3.1 Base Score of 5.5 (MEDIUM) with a vector of CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. The issue is classified under CWE-345 (Insufficient Verification of Data Authenticity). The technical root cause involves the BlpImagePlugin's failure to validate data returns after file offset jumps, which could result in the decoder being executed multiple times on empty data (NVD).

Impact

The vulnerability could lead to a denial-of-service (DoS) condition where the decoder could be run a large number of times on empty data. This could potentially affect system resources and availability (Pillow Docs, NVD).

Mitigation and workarounds

The recommended mitigation is to upgrade Pillow to version 8.2.0 or later. Various Linux distributions have released security updates to address this vulnerability, including Red Hat Enterprise Linux, Fedora, Ubuntu, and Gentoo (Gentoo Security, Fedora Update).

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-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 11, 2025
CVE-2025-13780CRITICAL9.1
  • PythonPython
  • pgadmin4
NoYesDec 11, 2025
CVE-2025-67644HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 11, 2025
CVE-2025-67720MEDIUM6.5
  • PythonPython
  • pyrofork
NoYesDec 11, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 10, 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