CVE-2025-48379Python Pillow
Medium 5.5
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.5
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 1, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-122
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Pillow.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
≥ 11.2.0 < 11.3.0 |
11.3.0 |
pip install "pillow>=11.3.0" |
| PyPI | pillow |
≥ 11.2.0 < 11.3.0 |
11.3.0 |
pip install "pillow>=11.3.0" |
Per OSV / GitHub Advisories (GHSA-xg8h-j46f-w952, PYSEC-2025-61). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | 11.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Issue Tracking
- github.com Release Notes
- github.com Vendor Advisory