Inefficient Regular Expression Complexity Affecting python3-pygments package, versions <0:2.7.4-1.amzn2023.0.3


Severity

Recommended
0.0
low
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.16% (6th 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-AMZN2023-PYTHON3PYGMENTS-18065007
  • published21 Jul 2026
  • disclosed22 Mar 2026

Introduced: 22 Mar 2026

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

How to fix?

Upgrade Amazon-Linux:2023 python3-pygments to version 0:2.7.4-1.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2026-1973.

NVD Description

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

A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular expression complexity. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

CVSS Base Scores

version 3.1