Advisory

PYSEC-2026-2248

Also known as: CVE-2026-28231, GHSA-5gjj-6r7v-ph3x, PYSEC-2026-2258

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Dates

Published
2026-02-27 20:21 UTC
Modified
2026-07-13 07:26 UTC

Affected packages and fixes

pi-heif

PyPI · All systems

Affected

  • introduced 0, fixed 1.3.0 (ecosystem)

Fixed versions

1.3.0

Fix

  • Fixed version 1.3.0
    pip install --upgrade pi-heif==1.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences