Pillow vulnerability can cause write buffer overflow on BCn encoding
Description
Published to the GitHub Advisory Database
Jul 1, 2025
Reviewed
Jul 1, 2025
Published by the National Vulnerability Database
Jul 1, 2025
Last updated
Jul 2, 2025
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 was introduced in Pillow 11.2.0 when the feature was added.
References