---
id: CVE-2026-112400
title: >-
  Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing
  DoS
summary: >-
  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.Decompre…
severity: high
cvss: 8.7
cvssVector: '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'
cvssSource: cna
cwe:
  - CWE-400
  - CWE-770
vendor: python-pillow
product: Pillow
affected:
  - 'Pillow >= 9.2.0, < 13.0.0'
published: '2026-10-19'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T21:12:37.401Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112400'
references:
  - url: >-
      https://github.com/python-pillow/Pillow/security/advisories/GHSA-65qm-jvmh-6pqg
    label: >-
      https://github.com/python-pillow/Pillow/security/advisories/GHSA-65qm-jvmh-6pqg
  - url: >-
      https://github.com/python-pillow/Pillow/commit/6faed707cfb760a4cbd726ddc8406f576cf35bf7
    label: >-
      https://github.com/python-pillow/Pillow/commit/6faed707cfb760a4cbd726ddc8406f576cf35bf7
  - url: 'https://github.com/python-pillow/Pillow/releases/tag/13.0.0'
    label: 'https://github.com/python-pillow/Pillow/releases/tag/13.0.0'
tags:
  - cve.org
ingestedAt: '2026-10-19T21:43:56.128Z'
---

## Overview

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.

## Affected

- `Pillow >= 9.2.0, < 13.0.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
