Skip to content
OpenAdvisories
Medium · 5.5 CVE-2026-28231 EUVD-2026-9061GHSA-5gjj-6r7v-ph3xPYSEC-2026-2248PYSEC-2026-2258

pillow_heif Has Integer Overflow in Encode Path Buffer Validation that Leads to Heap Out-of-Bounds Read

Published Feb 27, 2026 · Updated Mar 3, 2026 · Assigned by GitHub_M

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

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

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pillow-heif 1.3.0-1.1 openSUSE-SU-2026:10285-1

Affected packages

EcosystemPackageAffectedFixedRecord
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

References