# CVE-2025-48379: Pillow Vulnerable to Write Buffer Overflow on BCn encoding

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-01T17:29:37.000Z
- Modified: 2026-09-10T16:01:45.817Z
- Also known as: GHSA-xg8h-j46f-w952, BIT-PILLOW-2025-48379, PYSEC-2025-61
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 11.2.0, < 11.3.0
- pillow (PyPI): from 11.2.0 before 11.3.0; before 89f1f4626a2aaf5f3d5ca6437f41def2998fbe09; before ef98b3510e3e4f14b547762764813d7e5ca3c5a4
- python pillow: 11.2.1
- pillow (Bitnami): from 11.2.0

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/pull/9041> (exploit, evidence, issue-tracking, web)
- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952> (advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/11.3.0> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48379> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2025-61.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2025-48379](https://www.cve.org/CVERecord?id=CVE-2025-48379), CVE Terms of Use, modified 2025-07-01
- GitHub Advisory Database: [GHSA-xg8h-j46f-w952](https://github.com/advisories/GHSA-xg8h-j46f-w952), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-48379](https://nvd.nist.gov/vuln/detail/CVE-2025-48379), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-61](https://osv.dev/vulnerability/PYSEC-2025-61), CC-BY-4.0, modified 2025-07-07
- Bitnami Vulnerability Database: [BIT-PILLOW-2025-48379](https://osv.dev/vulnerability/BIT-PILLOW-2025-48379), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-48379 · Whole record: https://cve.day/CVE-2025-48379.json · Rebuilt by cve.day 2026-11-25T22:59:00.458Z
