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 package | Versions | Reported by |
|---|---|---|
| python-pillow Pillow | >= 11.2.0, < 11.3.0 | CVE List |
| pillow (PyPI) | from 11.2.0 before 11.3.0, before 89f1f4626a2aaf5f3d5ca6437f41def2998fbe09, before ef98b3510e3e4f14b547762764813d7e5ca3c5a4 | GitHub Advisory Database, PyPA Advisory Database |
| python pillow | 11.2.1 | NVD |
| pillow (Bitnami) | from 11.2.0 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
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
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952 | advisory, vendor-advisory, web | |
| https://github.com/python-pillow/Pillow/pull/9041 | evidence, exploit, issue-tracking, web | |
| https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4 | fix, patch, web | |
| https://github.com/python-pillow/Pillow/releases/tag/11.3.0 | article, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-48379 | advisory, web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2025-61.yaml | web | |
| https://github.com/python-pillow/Pillow | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-48379 changed 2025-07-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xg8h-j46f-w952 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-48379 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2025-61 changed 2025-07-07 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PILLOW-2025-48379 changed 2026-09-10 | Apache-2.0 |