CVE-2025-48379Pillow vulnerability can cause write buffer overflow on BCn encoding
A medium-severity vulnerability reachable with local access, needing low privileges and no user interaction. EPSS estimates a 0.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.4%
- percentile 24%
- Fix
- Named by a source
- CVE published 1 Jul 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.4% (+0) · Public exploit or proof of concept (+15) · No user interaction (+5)
Immediate actions
- pillow (PyPI): upgrade to 11.3.0 or later on your release line.
- Patch: https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4
- Advisory: https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-48379
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected>= 11.2.0, < 11.3.0Fixed in11.3.0OSV (PYSEC-2025-61)
python pillow product:python/pillow
- Affected11.2.1Fixed innot namedas published by CPE data (via the NVD API)
python-pillow Pillow product:pythonpillow/pillow
- Affected>= 11.2.0, < 11.3.0Affected range ends before11.3.0as published by CNA (CVE List)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.5 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- local
- Attack complexity
- low
- Privileges required
- low
- User interaction
- none
- Weakness
- CWE-122
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 1 Jul 2025Published
References
- patchhttps://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4
- exploithttps://github.com/python-pillow/Pillow/pull/9041
- otherhttps://github.com/python-pillow/Pillow/releases/tag/11.3.0
- advisoryhttps://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-48379
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2025-61.yaml
- otherhttps://github.com/python-pillow/Pillow
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-48379 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-xg8h-j46f-w952 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2025-61 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 48 min ago · osv 48 min ago · nvd 47 min ago · epss 47 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2025-48379, GHSA-xg8h-j46f-w952, PYSEC-2025-61