CVE-2026-112400: Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS

Published Oct 19, 2026
·
Updated

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 Software

1 affected component
pypi/Pillow>=9.2.0<13.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pillow to a version that resolves this vulnerability.

    Fixed in 13.0.0

Event History

Oct 19, 2026
CVE Published
via MITRE·09:12 PM
Data Sourced
via MITRE·09:12 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this denial-of-service issue?

Applications using Pillow versions 9.2.0 through before 13.0.0 that process attacker-controlled GIF files are exposed if they catch Image.DecompressionBombError and then continue using the same image object. The impact is memory exhaustion during later seek or load operations.

2

Does exploitation require authentication or user interaction?

No. The supplied CVSS vector indicates network-reachable exploitation with low attack complexity, no privileges, and no user interaction. An attacker needs to provide a crafted GIF to a vulnerable processing path.

3

What should applications do if they cannot immediately upgrade Pillow?

Do not continue processing the same GIF image object after catching Image.DecompressionBombError. Discard the object and fail the processing request, preventing later seek or load operations from allocating based on the rejected dimensions.

4

How can teams determine whether they are affected?

Check whether the deployed Pillow version is from 9.2.0 through before 13.0.0, and review GIF-processing error handling for code that catches Image.DecompressionBombError and reuses the image object. Pillow 13.0.0 contains the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203