CVE-2025-48379
Python vulnerability analysis and mitigation

Overview

CVE-2025-48379 affects Pillow, a Python imaging library, in versions 11.2.0 to before 11.3.0. The vulnerability was discovered in June 2025 and patched in version 11.3.0, released on July 1, 2025. The issue involves a heap buffer overflow vulnerability when writing sufficiently large images (>64KB when encoded with default settings) in the DDS format, due to writing into a buffer without checking for available space (GitHub Advisory, NVD).

Technical details

The vulnerability is classified as a heap-based buffer overflow (CWE-122) with a CVSS v3.1 base score of 7.1 (High). The attack vector is local (AV:L), with low attack complexity (AC:L), requiring low privileges (PR:L), and no user interaction (UI:N). The scope is unchanged (S:U), with no impact on confidentiality (C:N) but high impact on integrity and availability (I:H, A:H). The issue specifically occurs in the BCn encoding process when writing compressed DDS images, where the code writes into a buffer without proper space verification (GitHub Advisory).

Impact

The vulnerability can lead to heap memory corruption when processing untrusted data saved as compressed DDS images. The potential write overflow could be practically unbounded, limited only by process segfault, making it non-deterministic. The bytes would likely be emitted in chunks of 8 or 16, potentially allowing for arbitrary code execution (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Pillow version 11.3.0. Users are advised to upgrade to this version or later to address the issue. The fix involves adding proper buffer space verification checks before writing to memory (GitHub Release).

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

GHSA-5882-5rx9-xgxpCRITICAL10
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
GHSA-vx9w-5cx4-9796HIGH8.6
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • pyasn1
NoYesJan 16, 2026
CVE-2026-23528MEDIUM5.3
  • PythonPython
  • distributed
NoYesJan 16, 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