Skip to content
OpenAdvisories
High · 7.1 CVE-2025-48379 BIT-pillow-2025-48379EUVD-2025-19662GHSA-xg8h-j46f-w952PYSEC-2025-61

Pillow Vulnerable to Write Buffer Overflow on BCn encoding

Published Jul 1, 2025 · Updated Jul 1, 2025 · 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.

Affected products

VendorProductAffectedFixed
python-pillow Pillow >= 11.2.0, < 11.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Pillow 11.3.0-1.1 openSUSE-SU-2025:15316-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-pillow 11.3.0-r0 —
Alpine v3.23 py3-pillow 11.3.0-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.5.0-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow >= 11.2.0, < 11.3.0 11.3.0 GHSA-xg8h-j46f-w952

Advisories 1

References