CVE-2025-48379
MEDIUM 5.5CVSS 3.1Pillow vulnerability can cause write buffer overflow on BCn encoding
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.
- Published
- 1 Jul 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-122
- Also known as
- BIT-pillow-2025-48379GHSA-xg8h-j46f-w952PYSEC-2025-61
- Sources
- NVDJSONOSV GHSA-xg8h-j46f-w952JSONOSV PYSEC-2025-61JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:11.2.1:*:*:*:*:*:*:* |
= 11.2.1 | |
| OSV | PyPI | pillow | >= 11.2.0, < 11.3.0 | 11.3.0 |
References
- https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4 · Patch, WEB, FIX
- https://github.com/python-pillow/Pillow/pull/9041 · Exploit, Issue Tracking, WEB
- https://github.com/python-pillow/Pillow/releases/tag/11.3.0 · Release Notes, WEB
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952 · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-48379 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2025-61.yaml · WEB
- https://github.com/python-pillow/Pillow · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 1 Jul 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Jul 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Jul 2025)