CVE Catalog

CVE-2026-112901

MediumCVSS 6.9
Published: Translated: NVD NIST

Summary

Pillow prior to 13.0.0 is vulnerable to regular-expression denial of service in its XBM header parser. Calling Image.open() on a small crafted XBM file causes a backtracking expression to be applied to the attacker-controlled header, stalling a worker for minutes.

Risk Assessment

An attacker can remotely supply a crafted XBM file and block image processing in the application, causing denial of service. This affects availability of systems processing user-supplied images.

Recommendation

Update Pillow to version 13.0.0 or later. Consider limiting size and validating XBM files uploaded by users.

Other vulnerabilities in Pillow

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS