Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode (python-pillow Pillow)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.34 % Β· percentile 28 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-400 β Uncontrolled Resource Consumption
- CWE-770 β Allocation of Resources Without Limits or Throttling
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | GitHub_M |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-24rc-8hj2-v98c β Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
European references
- ENISA EUVD Β· EUVD-2026-107559
- GCVE Β· GCVE-0-2026-96638
Affected configurations (NVD CPE)
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*β₯ 9.1.0 < 13.0.0
Affected products
| Product | Versions |
|---|---|
| python-pillow Β· Pillow | affected >= 9.1.0, < 13.0.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |