CVE-2026-28231
MEDIUM 5.5CVSS 4.0pillow-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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bigcat88 | pillow-heifcpe: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
- https://github.com/bigcat88/pillow_heif/commit/8305a15d3780c533b762578cbe987d27a2c59c7a · Patch, WEB, FIX
- https://github.com/bigcat88/pillow_heif/releases/tag/v1.3.0 · Product, Release Notes, WEB, ADVISORY
- https://github.com/bigcat88/pillow_heif/security/advisories/GHSA-5gjj-6r7v-ph3x · Exploit, Mitigation, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-28231 · ADVISORY
- https://github.com/bigcat88/pillow_heif · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pi-heif/PYSEC-2026-2248.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow-heif/PYSEC-2026-2258.yaml · WEB
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)