CVE-2025-48379
JSON

7.1high

Pillow Vulnerable to Write Buffer Overflow on BCn encoding

Severity
7.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xg8h-j46f-w952BIT-PILLOW-2025-48379PYSEC-2025-61

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

Product or packageVersionsReported by
python-pillow Pillow>= 11.2.0, < 11.3.0CVE List
pillow (PyPI)from 11.2.0 before 11.3.0, before 89f1f4626a2aaf5f3d5ca6437f41def2998fbe09, before ef98b3510e3e4f14b547762764813d7e5ca3c5a4GitHub Advisory Database, PyPA Advisory Database
python pillow11.2.1NVD
pillow (Bitnami)from 11.2.0Bitnami Vulnerability Database

All scores

GitHub_M7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
GitHub7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-122

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

  • Unclear how large the potential write could be. It is likely limited by process segfault, so it's not necessarily deterministic. It may be practically unbounded.
  • Unclear if there's a restriction on the bytes that could be emitted. It's likely that the only restriction is that the bytes would be emitted in chunks of 8 or 16.

This was introduced in Pillow 11.2.0 when the feature was added.

NVD (es)

Pillow es una librería de imágenes de Python. En las versiones 11.2.0 y anteriores a la 11.3.0, se produce un desbordamiento del búfer de montón al escribir una imagen suficientemente grande (más de 64k codificada con la configuración predeterminada) en formato DDS, debido a que se escribe en un búfer sin comprobar el espacio disponible. Esto solo afecta a los usuarios que guardan datos no confiables como una imagen DDS comprimida. Este problema se ha corregido en la versión 11.3.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-48379 changed 2025-07-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-xg8h-j46f-w952 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-48379 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2025-61 changed 2025-07-07CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-PILLOW-2025-48379 changed 2026-09-10Apache-2.0