Skip to main content
← All vulnerabilities
CVE-2026-28231PYSEC-2026-2248GHSA-5GJJ-6R7V-PH3XPYSEC-2026-2258

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.3.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • bigcat88 pillow_heif

    fixed in 1.3.0

  • pi-heifPyPI

    fixed in 1.3.0

  • pillow-heifPyPI

    fixed in 1.3.0

References 3

GitHub · bigcat88/pillow_heif