cve.bz

CVE-2025-48379 python pillow: Heap-based Buffer Overflow

5.5 mediumExploit referenceEPSS 0.3%Fix available

Medium (5.5) in python pillow. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 11.3.0.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-07-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-48379 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-48379?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-48379?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-48379 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillow11.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xg8h-j46f-w952PyPIpillow>=11.2.0 <11.3.011.3.0
PYSEC-2025-61PyPIpillow>=11.2.0 <11.3.011.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedpython-Pillow11.3.0-1.1openSUSE-SU-2025:15316-1
Alpinev3.23, v3.24py3-pillow11.3.0-r0ALPINE-CVE-2025-48379

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability was rated as Important by the Red Hat Product Security Engineer. An attacker may leverage that by crafting a malicious DDS image bigger than 64k (when encoded). This happens because of the lack of size checking when writing the image data into an internal buffer. When successfully exploited, this vulnerability may lead to a local arbitrary code execution within the user privileges similar to the ones for the user running the application or a denial of service for the application consuming the Pillow library.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux AI 1.5rhelai1/instructlab-nvidia-rhel9:1.5.3-1756791365Fixed 2025-09-15RHSA-2025:15832
Red Hat Enterprise Linux AI 1.5rhelai1/bootc-intel-rhel9:1.5.3-1756724193Fixed 2025-09-15RHSA-2025:15836
Red Hat Enterprise Linux AI 1.5rhelai1/bootc-gcp-nvidia-rhel9:1.5.3-1756815294Fixed 2025-09-15RHSA-2025:15837
Red Hat Enterprise Linux AI 1.5rhelai1/bootc-aws-nvidia-rhel9:1.5.3-1756815228Fixed 2025-09-15RHSA-2025:15838
Red Hat Enterprise Linux AI 1.5rhelai1/bootc-amd-rhel9:1.5.3-1756800437Fixed 2025-09-15RHSA-2025:15839
Red Hat Enterprise Linux AI 1.5rhelai1/bootc-azure-amd-rhel9:1.5.3-1756815221Fixed 2025-09-15RHSA-2025:15840
Red Hat Enterprise Linux AI 1.5rhelai1/bootc-nvidia-rhel9:1.5.3-1756799326Fixed 2025-09-15RHSA-2025:15841
Red Hat Enterprise Linux AI 1.5rhelai1/bootc-azure-nvidia-rhel9:1.5.3-1756815370Fixed 2025-09-15RHSA-2025:15842
Red Hat Enterprise Linux AI 1.5rhelai1/instructlab-amd-rhel9:1.5.3-1756791391Fixed 2025-09-15RHSA-2025:15843
Red Hat Enterprise Linux AI 1.5rhelai1/instructlab-intel-rhel9:1.5.3-1757955810Fixed 2025-09-15RHSA-2025:15867
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Affected
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Affected
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-supported-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-supported-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Not affected
43 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-48379.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON