Pillow Vulnerable to Write Buffer Overflow on BCn encoding
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Partial Red Hat: 1 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| python-pillow | Pillow | 11.2.0 to before 11.3.0 | 11.3.0 | Patch available | CNA |
| — | pillow (PyPI) | 11.2.0 to before 11.3.0 | 11.3.0 | Patch available | GHSA-xg8h-j46f-w952 |
- Pillow Vendorpython-pillow Affected 11.2.0 to before 11.3.0 Fixed in 11.3.0 Patch available CNA
- pillow (PyPI) Vendor— Affected 11.2.0 to before 11.3.0 Fixed in 11.3.0 Patch available GHSA-xg8h-j46f-w952
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:pillow:11.2.1:*:*:*:*:*:*:* | 11.2.1 | Vulnerable | python-pillow |
- cpe:2.3:a:python:pillow:11.2.1:*:*:*:*:*:*:* Versions 11.2.1 Vulnerable ·python-pillow
Remediation
- Fix · CNA Pillow (python-pillow) Fixed in 11.3.0
- Fix · GHSA-xg8h-j46f-w952 pillow (PyPI) Fixed in 11.3.0 Advisory →
Red Hat 10 advisories
- RHSA-2025:15867 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (Intel Gaudi)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/instructlab-intel-rhel9
- RHSA-2025:15843 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (AMD)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/instructlab-amd-rhel9
- RHSA-2025:15841 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (NVIDIA)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/bootc-nvidia-rhel9
Show 7 more Red Hat advisories
- RHSA-2025:15842 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (NVIDIA)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/bootc-azure-nvidia-rhel9
- RHSA-2025:15838 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (NVIDIA)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/bootc-aws-nvidia-rhel9
- RHSA-2025:15839 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (AMD)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/bootc-amd-rhel9
- RHSA-2025:15840 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (AMD)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/bootc-azure-amd-rhel9
- RHSA-2025:15837 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (NVIDIA)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/bootc-gcp-nvidia-rhel9
- RHSA-2025:15836 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (Intel Gaudi)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/bootc-intel-rhel9
- RHSA-2025:15832 Released 2025-09-15 · Red Hat rating ImportantRed Hat Enterprise Linux AI 1.5 (NVIDIA)
- Red Hat Enterprise Linux AI 1.5 registry.redhat.io/rhelai1/instructlab-nvidia-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Lightspeed | Affected | No fix yet |
| Red Hat AI Inference Server | Affected | No fix yet |
| Red Hat Enterprise Linux AI (RHEL AI) | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AI 1.5 | Fixed | RHSA-2025:15832, RHSA-2025:15836, RHSA-2025:15837, RHSA-2025:15838, RHSA-2025:15839, RHSA-2025:15840, RHSA-2025:15841, RHSA-2025:15842, RHSA-2025:15843, RHSA-2025:15867 |
Not affected: 7 products
- OpenShift Lightspeed
- Red Hat Ansible Automation Platform 2
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux AI (RHEL AI)
- Red Hat Quay 3
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2025-48379
- 2026-10-03 Alias added: GHSA-xg8h-j46f-w952
References
Advisory 2
More python-pillow Pillow vulnerabilities
- TI-2026-76627 Out-of-bounds read in Pillow TIFF encoder ColorMap handling CVSS 4.0HIGH 8.8
- TI-2026-76625 Quadratic-time denial of service in Pillow PDF save_all CVSS 4.0HIGH 8.7
- TI-2026-76605 NULL pointer dereference in Pillow's Image.merge function CVSS 4.0HIGH 8.7
- TI-2026-76604 Out-of-bounds read in Pillow TIFF decoding leaks heap memory CVSS 4.0HIGH 8.8
- TI-2026-76602 Double free in Pillow ImagingScaleAffine on allocation failure CVSS 4.0HIGH 8.7
- TI-2026-76600 GIF seek in Pillow keeps rejected size, allowing denial of service CVSS 4.0HIGH 8.7
Sources
- CVE-2025-48379 · CVE Program
- CVE-2025-48379 · NVD
- FIRST EPSS
- GHSA-xg8h-j46f-w952 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-48379 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences