Security mailing lists by PureSourceCode

CVE-2026-28231

MEDIUM 5.5CVSS 4.0

pillow-heif: Integer Overflow in Encode Path Buffer Validation Leads to Heap Out-of-Bounds Read

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.

Published
27 Feb 2026
Last modified
20 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-125
Also known as
GHSA-5gjj-6r7v-ph3xPYSEC-2026-2248PYSEC-2026-2258
Sources
NVDJSONOSV GHSA-5gjj-6r7v-ph3xJSONOSV PYSEC-2026-2248JSONOSV PYSEC-2026-2258JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 MEDIUM 5.5 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
OSV PyPA CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD bigcat88 pillow-heif
cpe:2.3:a:bigcat88:pillow-heif:*:*:*:*:*:python:*:*
< 1.3.0 1.3.0
OSV PyPI pi-heif < 1.3.0 1.3.0
OSV PyPI pillow-heif < 1.3.0 1.3.0

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 27 Feb 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Feb 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Feb 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.