CVE-2026-112400

Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS

Published Oct 19, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Pillow is a Python imaging library. From 9.2.0 until 13.0.0, Pillow can retain a rejected GIF frame size after a decompression-bomb exception. In GifImageFile._seek, a crafted GIF can leave rejected dimensions stored after Image.DecompressionBombError; if an application catches that exception and continues processing the same image object, later seek or load operations allocate according to those dimensions and can exhaust memory, denying service. This issue is fixed in version 13.0.0.

Analysis

AI-generated

Technical impact

A GIF image containing a crafted frame can trigger Pillow’s decompress‑bomb detection, raising a DecompressionBombError. If the exception is caught and the same image object is used again, the library retains the rejected frame’s dimensions. Subsequent seek or load operations then allocate memory based on these oversized dimensions, potentially exhausting available memory and causing the application to become unresponsive. The weakness is reflected in CWE‑400 (Uncontrolled Resource Consumption) and CWE‑770 (Allocation of Resources Without Limits).

Affected Systems

Python applications that use Pillow versions from 9.2.0 up to and including 12.9.9 are vulnerable when they allow GIFs from untrusted sources to be loaded and processed without upgrading to version 13.0.0 or later, which contains the fix.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity of denial‑of‑service potential. Exploitation requires delivery of a malicious GIF file to the target application; the likelihood of exploitation is uncertain due to the lack of an EPSS score, but it could be attempted by attackers with any access to provide image input. The flaw is not listed in the CISA KEV catalog, so no known widespread exploit exists at this time. The attack vector is inferred to be either local, if the attacker can supply files, or remote, if the application receives GIFs over the network.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Pillow to version 13.0.0 or later to apply the fixed image‑size handling.
  • In application code, catch DecompressionBombError and discard the impacted image object rather than reusing it.
  • Apply additional input validation to limit image size or dimensions before the image is handed to Pillow.

Generated by OpenCVE AI on October 20, 2026 at 06:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-65qm-jvmh-6pqg Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
History
Type Values Removed Values Added
First Time appeared Python
Python pillow
CPEs cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
Vendors & Products Python
Python pillow
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Python-pillow
Python-pillow pillow
Vendors & Products Python-pillow
Python-pillow pillow
Type Values Removed Values Added
Description Pillow is a Python imaging library. From 9.2.0 until 13.0.0, Pillow can retain a rejected GIF frame size after a decompression-bomb exception. In GifImageFile._seek, a crafted GIF can leave rejected dimensions stored after Image.DecompressionBombError; if an application catches that exception and continues processing the same image object, later seek or load operations allocate according to those dimensions and can exhaust memory, denying service. This issue is fixed in version 13.0.0.
Title Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
Weaknesses CWE-400
CWE-770
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'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 2:59 PM
Reserved
Oct 19, 2026, 4:58 PM
Status
Analyzed
Published
Oct 19, 2026, 10:17 PM
Modified
Oct 27, 2026, 9:02 PM
Severity
Important
Public date
Oct 19, 2026, 9:12 PM