CVE-2025-48379

Pillow Vulnerable to Write Buffer Overflow on BCn encoding

Published Jul 1, 2025 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-19662 Pillow vulnerability can cause write buffer overflow on BCn encoding
Github GHSA Github GHSA GHSA-xg8h-j46f-w952 Pillow vulnerability can cause write buffer overflow on BCn encoding
History
Type Values Removed Values Added
First Time appeared Python
Python pillow
CPEs cpe:2.3:a:python:pillow:11.2.1:*:*:*:*:*:*:*
Vendors & Products Python
Python pillow
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Pillow Vulnerable to Write Buffer Overflow on BCn encoding
Weaknesses CWE-122
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 1, 2025, 7:42 PM
Reserved
May 19, 2025, 3:46 PM
Status
Analyzed
Published
Jul 1, 2025, 7:15 PM
Modified
Jun 17, 2026, 9:29 AM
Severity
Important
Public date
Jul 1, 2025, 6:33 PM