Inefficient Regular Expression Complexity Affecting python-pillow-doc package, versions <0:2.0.0-23.gitd1c6db8.amzn2.0.21


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.53% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PYTHONPILLOWDOC-22386780
  • published10 Nov 2026
  • disclosed19 Oct 2026

Introduced: 19 Oct 2026

CVE-2026-112901  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python-pillow-doc to version 0:2.0.0-23.gitd1c6db8.amzn2.0.21 or higher.
This issue was patched in ALAS2-2026-4075.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-pillow-doc package and not the python-pillow-doc package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1