CVE-2026-96638: Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
Vulnerability summary
CVE-2026-96638 is a medium (CVSS 6.5) Uncontrolled Resource Consumption vulnerability in python-pillow pillow. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 19.4% of scored vulnerabilities.
Timeline
- 21-10-2026PublishedVulnerability first disclosed.
Description
Pillow is a Python imaging library. From 9.1.0 until 13.0.0, BmpRleDecoder.decode() in src/PIL/BmpImagePlugin.py permits crafted RLE BMP delta escapes and absolute-mode runs to append beyond the remaining dest_length without a per-branch cap. A delta can add roughly 255 image rows in one iteration, so a kilobyte-sized file with a large but permitted width can expand the data bytearray to hundreds of megabytes or more, causing memory-exhaustion denial of service. This issue is fixed in version 13.0.0.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · PypiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
19%
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 cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Affected systems
Chainguard12 products
- mlflowAll versions (No fix recorded)
- mlflow-fipsAll versions (No fix recorded)
- nemo-gymAll versions (No fix recorded)
- nemo-rl-cuda-13.0-automodelAll versions (No fix recorded)
- open-webuiAll versions (No fix recorded)
Ubuntu2 products
- pillowAll versions (No fix recorded)
- pillow-python2All versions (No fix recorded)
Wolfi2 products
- mlflowAll versions (No fix recorded)
- open-webuiAll versions (No fix recorded)
Debian1 product
- pillowAll versions (No fix recorded)
PyPI1 product
- pillow≥ 9.1.0, < 13.0.0
Python-pillow1 product
- pillow≥ 9.1.0, < 13.0.0
6 vendors · 19 products
References
10 links- github.com/python-pillow/Pillow/security/advisories/GHSA-24rc-8hj2-v98cX Refsource CONFIRMWEBAdvisoryREPORT
- github.com/python-pillow/Pillow/commit/e7794835e323ff2691d9b3a974cade1a44301b9aX Refsource MISCWEBFIX