CVE-2025-48379 json
Pillow Vulnerable to Write Buffer Overflow on BCn encoding
published 2025-07-01 16 mo ago modified 2026-09-10 1 mo ago also BIT-pillow-2025-48379 , EUVD-2025-19662 , GHSA-xg8h-j46f-w952 , PYSEC-2025-61
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pillow 11.3.0
- python pillow 11.3.0
- python-Pillow openSUSE Tumbleweed 11.3.0-1.1
opensuse advisories openSUSE-SU-2025:15316-1
- py3-pillow Alpine 3.24, Alpine 3.23 11.3.0-r0
alpine advisories ALPINE-CVE-2025-48379
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-pillow Arch Linux 11.3.0-1
arch linux advisories AVG-2906
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-48379 updated cvss 7.1
python-pillow: pillow: Pillow DDS Heap Buffer Overflow
-
Red Hat OpenShift Lightspeed openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat AI Inference Server rhaiis/vllm-cuda-rhel9, rhaiis/vllm-rocm-rhel9affected: workaround, no fix available
-
Red Hat Enterprise Linux AI (RHEL AI) rhelai1/skills-adapter-v3, rhelai1/knowledge-adapter-v3, rhelai1/prometheus-8x7b-v2-0, rhelai1/modelcar-gemma-2-9b-it, rhelai1/mixtral-8x7b-instruct-v0-1, rhelai1/modelcar-gemma-2-9b-it-fp8, +9 moreaffected: workaround, no fix planned “Will not fix”
-
Red Hat Enterprise Linux AI 1.5 rhelai1 1.5.3-1756724193, rhelai1 1.5.3-1756791365, rhelai1 1.5.3-1756791391, rhelai1 1.5.3-1756799326, rhelai1 1.5.3-1756800437, rhelai1 1.5.3-1756815221, +4 morefixed: vendor fix RHSA-2025:15839
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9 Red Hat Ansible Automation Platform 2 python-pillow, python3x-pillow, python3.11-pillow, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-25/de-minimal-rhel8, +8 more Red Hat Enterprise Linux 7 python-pillow, python-pillow-qt, python-pillow-tk, python-pillow-sane Red Hat Enterprise Linux 8 python-pillow, python3-pillow, python3-pillow-tk Red Hat Enterprise Linux AI (RHEL AI) rhelai1/granite-8b-lab-v1, rhelai1/granite-7b-starter, rhelai1/docling-serve-rhel9, rhelai1/granite-8b-code-base, rhelai1/granite-3.1-8b-lab-v1, rhelai1/granite-7b-redhat-lab, +9 more Red Hat Quay 3 quay/quay-rhel8not affected: vulnerable code not present
+1 more productsfewer
Red Hat Satellite 6 python-pillow
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 16 mo ago
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/python-pillow/Pillow/pull/9041 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| OSV | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | >=11.2.0, <11.3.0 |
11.3.0 |
| bitnami | pillow | >=11.2.0 |
no fix listed |
Affected products
- python-pillow Pillow
Classification
- Weakness
-
- CWE-122 Heap-based Buffer Overflow
References
-
github.com
/python-pillow/Pillow/pull/9041
web, exploit, issue-tracking, evidence
-
github.com
/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4
web, patch
-
github.com
/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952
web, vendor-advisory, advisory
-
github.com
/python-pillow/Pillow/releases/tag/11.3.0
web, release-notes, article
-
nvd.nist.gov
/vuln/detail/CVE-2025-48379
advisory, web
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2025-61.yaml
web
-
github.com
/python-pillow/Pillow
package
Sources
- CVE List CVE-2025-48379
- GitHub Advisory GHSA-xg8h-j46f-w952
- NVD CVE-2025-48379
- OSV BIT-pillow-2025-48379
- OSV PYSEC-2025-61
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.