PYSEC-2026-2258

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pillow-heif/PYSEC-2026-2258.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2258
Aliases
Published
2026-02-27T20:21:40Z
Modified
2026-07-13T07:26:30Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

PyPI / pillow-heif

Package

Name
pillow-heif
View open source insights on deps.dev
Purl
pkg:pypi/pillow-heif

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.3.0

Affected versions

0.*
0.1.4
0.1.5
0.1.10
0.1.11
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.7.1
0.7.2
0.8.0
0.9.0
0.9.1
0.9.2
0.9.3
0.10.0
0.10.1
0.11.1
0.12.0
0.13.0
0.13.1
0.14.0
0.15.0
0.16.0
0.17.0
0.18.0
0.20.0
0.21.0
0.22.0
1.*
1.0.0
1.1.0
1.1.1
1.2.0
1.2.1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/pillow-heif/PYSEC-2026-2258.yaml"