Vulnerability · Published Jul 1, 2025 · Assigned by GitHub_M

CVE-2025-48379Pillow Vulnerable to Write Buffer Overflow on BCn encoding

High 7.1

In plain English

A high-severity heap buffer overflow in Pillow from python-pillow. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.3%top 74.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Pillow is a Python imaging library. In versions 11.2.0 to before 11.3.0, there is a heap buffer overflow when writing a sufficiently large (>64k encoded with default settings) image in the DDS format due to writing into a buffer without checking for available space. This only affects users who save untrusted data as a compressed DDS image. This issue has been patched in version 11.3.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23py3-pillow11.3.0-r0ALPINE-CVE-2025-48379
Alpine:v3.24py3-pillow11.3.0-r0ALPINE-CVE-2025-48379
PyPIpillow11.3.0GHSA-xg8h-j46f-w952
PyPIpillow11.3.0PYSEC-2025-61

Affected products (as reported)

VendorProductVersions
python-pillow Pillow >= 11.2.0, < 11.3.0

Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

References