Description
Pillow is a Python imaging library. From 4.1.0 until 13.0.0, Pillow's MSP RLE decoder can expand a small file into an unbounded in-memory buffer. The decoder writes run-length output to BytesIO without limiting expansion to the declared image size. An attacker can supply a crafted MSP image to an application that loads its pixels. This can exhaust memory and deny service even when the declared pixel count passes the decompression-bomb check. This issue is fixed in version 13.0.0.
Published: 2026-10-19
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: Denial of Service via memory exhaustion
Action: Apply Patch
AI Analysis

Impact

Pillow's MSP RLE decoder can decompress a small MSP image file into an unbounded amount of memory because the decoder writes run‑length output to a BytesIO stream without limiting expansion to the declared image size. This flaw means that a crafted MSP image can cause Pillow to allocate an arbitrary amount of memory when an application loads the image. The result is a denial of service through memory exhaustion, as the process or system can become unresponsive or crash. The vulnerability maps to CWE‑409 (Uncontrolled Size of Data Structure).

Affected Systems

All installations of the Python Pillow imaging library from version 4.1.0 up to but not including 13.0.0 are vulnerable. The issue was addressed in Pillow 13.0.0, which includes a fix that limits memory allocation based on the image dimensions. Users of earlier Pillow versions should review their application code to ensure it is not using these vulnerable releases.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. The EPSS score is not available, so the current probability of exploitation cannot be quantified, but the potential for denial of service exists whenever a Pillow‑based application processes untrusted MSP files. The vulnerability is not listed in CISA’s KEV catalog, suggesting no publicly confirmed exploit yet. An attacker would need to supply a malicious MSP image to an application that decodes it, such as through a web upload or a file‑processing service, which could lead to memory exhaustion and application or system downtime.

Generated by OpenCVE AI on October 20, 2026 at 01:00 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Pillow library to version 13.0.0 or later.
  • Validate the size of MSP images before decoding with Pillow and reject files exceeding a predefined safe limit.
  • Apply process‑level resource limits, such as ulimit or cgroup memory caps, to the services that load images to constrain the impact of a memory‑exhaustion attack.

Generated by OpenCVE AI on October 20, 2026 at 01:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Python-pillow
Python-pillow pillow
Vendors & Products Python-pillow
Python-pillow pillow

Mon, 19 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Description Pillow is a Python imaging library. From 4.1.0 until 13.0.0, Pillow's MSP RLE decoder can expand a small file into an unbounded in-memory buffer. The decoder writes run-length output to BytesIO without limiting expansion to the declared image size. An attacker can supply a crafted MSP image to an application that loads its pixels. This can exhaust memory and deny service even when the declared pixel count passes the decompression-bomb check. This issue is fixed in version 13.0.0.
Title Pillow: MSP RLE decoder expands a tiny file into unbounded memory
Weaknesses CWE-409
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Python-pillow Pillow
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-19T21:35:25.797Z

Reserved: 2026-10-19T20:16:09.856Z

Link: CVE-2026-112892

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-19T22:17:09.210

Modified: 2026-10-19T22:17:09.210

Link: CVE-2026-112892

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T01:15:06Z

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)