Description
pillow_heif is a Python library for working with HEIF images and plugin for Pillow. Prior to version 1.3.0, an integer overflow in the encode path buffer validation of `_pillow_heif.c` allows an attacker to bypass bounds checks by providing large image dimensions, resulting in a heap out-of-bounds read. This can lead to information disclosure (server heap memory leaking into encoded images) or denial of service (process crash). No special configuration is required — this triggers under default settings. Version 1.3.0 fixes the issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| bigcat88 | pillow_heif | < 1.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.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-pillow-heif | 1.3.0-1.1 | openSUSE-SU-2026:10285-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pi-heif | < 1.3.0 | 1.3.0 | GHSA-5gjj-6r7v-ph3x |
| PyPI | pillow-heif | < 1.3.0 | 1.3.0 | GHSA-5gjj-6r7v-ph3x |
Advisories 1
- openSUSE-SU-2026:10285-1 python311-pillow-heif-1.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026