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

Medium 6.9 Published Updated

Attackers can cause service disruption by submitting crafted XBM files that trigger excessive CPU usage in the Pillow image processing library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-112901?

CVE-2026-112901 is a medium-severity denial of service vulnerability in Python Pillow, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-1333

Which versions are affected by CVE-2026-112901?

4 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.

PackageAffectedFixed in
pillow BitnamiAll versions13.0.0
pillow PyPIAll versions13.0.0
pillow PyPIAll versions13.0.0
Pillow PyPIAll versions13.0.0

Products include Python Pillow.

How do I fix CVE-2026-112901?

Upgrade pillow to 13.0.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-112901 being exploited?

There is no known exploitation of CVE-2026-112901 in the wild and no public exploit code.

All Python Pillow vulnerabilities

Sources

Also known as BIT-pillow-2026-112901, DEBIAN-CVE-2026-112901, ECHO-f069-0416-8c79, GHSA-xgh8-jp6q-p5x8, PYSEC-2026-4335, UBUNTU-CVE-2026-112901.

Is CVE-2026-112901 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free