Vulnerabilities · 2025 · Python
CVE-2025-48379
Python Pillow vulnerability
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 products
Pillow. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pillow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952 · Vendor Advisory
- github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4 · Patch
- github.com/python-pillow/Pillow/pull/9041 · Exploit
- github.com/python-pillow/Pillow/releases/tag/11.3.0
- nvd.nist.gov/vuln/detail/CVE-2025-48379
- github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2025-61.yaml
- github.com/advisories/GHSA-xg8h-j46f-w952
- nvd.nist.gov/vuln/detail/CVE-2025-48379
- cve.org/CVERecord?id=CVE-2025-48379
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-47273CVE-2025-13837CVE-2025-13836All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.