CVE-2026-112901: Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes

Published Oct 19, 2026
·
Updated

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's XBM header parser is vulnerable to regular-expression denial of service. In XbmImageFile.open, when an application calls Image.open() on a small crafted XBM file, XbmImagePlugin applies a backtracking expression to the attacker-controlled header before image dimensions are accepted, stalling a worker for minutes and denying service. This issue is fixed in version 13.0.0.

Affected Software

1 affected component
pypi/Pillow<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·10:09 PM
Data Sourced
via MITRE·10:09 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Pillow versions earlier than 13.0.0 are exposed if they call Image.open() on XBM files whose contents can be influenced by an attacker. The affected parsing occurs in the XBM header before image dimensions are accepted.

2

What does an attacker need to exploit it?

An attacker needs to provide a crafted, small XBM file for the application to open with Image.open(). No privileges or user interaction are required according to the supplied CVSS vector.

3

What is the operational impact?

Processing a crafted XBM file can cause the XBM header parser to stall a worker for minutes due to regular-expression backtracking. This can deny availability to workloads that process attacker-controlled images.

4

What should be done if upgrading cannot happen immediately?

The provided data identifies version 13.0.0 as the fix. Until upgrading, avoid passing untrusted XBM files to Pillow's Image.open() where possible.

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