CVE-2026-112891: Pillow: Quadratic GIF comment copying during save
Vulnerability summary
CVE-2026-112891 is a high (CVSS 7.5) Inefficient Algorithmic Complexity vulnerability in python-pillow pillow. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 46% of scored vulnerabilities.
Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 19-10-2026PublishedVulnerability first disclosed.
- 20-10-2026Last modifiedVulnerability information updated.
Description
Pillow is a Python imaging library. From 9.2.0 until 13.0.0, Pillow performs quadratic copying when saving a GIF with a long comment. _get_global_header() repeatedly copies portions of comment data while assembling the global header, including comments retained from an untrusted input image. An attacker can supply an image with a large GIF comment to an application that saves it as GIF. This can consume excessive CPU and delay or deny service. This issue is fixed in version 13.0.0.
CVSS metrics
9 scores · 7 sources · 2 versions- NVDNIST6.9MediumCVSS: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:X/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 · PypiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.55%
Chance of exploitation in the next 30 days
Percentile
46%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard25 products
- apache-beam-python-3.12-sdkAll versions (No fix recorded) | < 2.77.0-r5
- mlflowAll versions (No fix recorded) | < 3.17.2-r2
- mlflow-fipsAll versions (No fix recorded) | < 3.17.2-r3
- nemo-gymAll versions (No fix recorded) | < 0.5.0_rc0_git20260729-r6
- nemo-rl-cuda-13.0All versions (No fix recorded) | < 0.7.0-r11
Wolfi6 products
- mlflowAll versions (No fix recorded)
- open-webuiAll versions (No fix recorded) | < 0.12.3-r6
- py3.10-pillowAll versions (No fix recorded)
- py3.11-pillowAll versions (No fix recorded) | < 13.0.0-r0
- py3.12-pillowAll versions (No fix recorded) | < 13.0.0-r0
Ubuntu2 products
- pillowAll versions (No fix recorded)
- pillow-python2All versions (No fix recorded)
Debian1 product
- pillowAll versions (No fix recorded)
PyPI1 product
- pillow≥ 9.2.0, < 13.0.0
Python1 product
- pillow≥ 9.2.0, < 13.0.0
Python-pillow1 product
- pillow≥ 9.2.0, < 13.0.0
7 vendors · 37 products
References
9 links- github.com/python-pillow/Pillow/security/advisories/GHSA-fc9g-5qg7-mf45X Refsource CONFIRMWEBAdvisoryREPORTVendor Advisory
- github.com/python-pillow/Pillow/commit/68a3fe957d8a4d552e8c69d96066d749f0614c7eX Refsource MISCWEBFIXPatch