Heap-based Buffer Overflow Affecting pillow package, versions [11.2.1,11.3.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PILLOW-10574890
  • published2 Jul 2025
  • disclosed1 Jul 2025
  • creditUnknown

Introduced: 1 Jul 2025

NewCVE-2025-48379  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade pillow to version 11.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the ImagingBcnEncode function. An attacker can cause memory corruption or potentially execute arbitrary code by saving a specially crafted, large DDS image file as compressed data.

Note: This is only exploitable if untrusted data is saved as a compressed DDS image.

CVSS Base Scores

version 4.0
version 3.1