Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | pygments | 2.19.0, 2.19.1, 2.19.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pygments | 2.20.0+dfsg-1 | — |
| Debian 13 | pygments | No fix yet | — |
| Debian 12 | pygments | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pygments | No fix yet | — |
| Ubuntu 26.04 LTS | pygments | No fix yet | — |
| Ubuntu 25.10 | pygments | No fix yet | — |
| Ubuntu 24.04 LTS | pygments | No fix yet | — |
| Ubuntu 22.04 LTS | pygments | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pygments | No fix yet | — |
| Ubuntu 18.04 LTS | pygments | No fix yet | — |
| Ubuntu 16.04 LTS | pygments | No fix yet | — |
| Ubuntu Pro 14.04 LTS | pygments | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-Pygments | 2.19.1-160000.3.1 | SUSE-SU-2026:22093-1 |
| SLES 16.0 | python-Pygments | 2.19.1-160000.3.1 | SUSE-SU-2026:22093-1 |
| SLE Micro 6.2 | python-Pygments | 2.19.1-160000.3.1 | SUSE-SU-2026:22058-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Pygments | 2.20.0-2.1 | openSUSE-SU-2026:10476-1 |
| openSUSE Leap 16.0 | python-Pygments | 2.19.1-160000.3.1 | openSUSE-SU-2026:20931-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-pygments | 2.7.4-1.amzn2023.0.3 | ALAS2023-2026-1973 |
| Amazon Linux 2 | python3-pygments +1 | 2.2.0-3.amzn2.0.4 | ALAS2-2026-3817 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3 | 3.1.8-r10 | — |
| Wolfi rolling | az | 2.84.0-r4 | — |
| Wolfi rolling | dask-kubernetes | 2026.3.0-r2 | — |
| Wolfi rolling | datadog-agent-7.72 +5 | No fix yet | — |
| Wolfi rolling | datadog-agent-7.77 +1 | 7.77.3-r18 | — |
| Wolfi rolling | datadog-agent-7.78 +1 | 7.78.4-r18 | — |
| Wolfi rolling | datadog-agent-7.79 +1 | 7.79.2-r8 | — |
| Wolfi rolling | datadog-agent-7.80 | 7.80.4-r10 | — |
| Wolfi rolling | ggshield | 1.49.0-r0 | — |
| Wolfi rolling | jupyter-base-notebook | 7.5.5-r1 | — |
| Wolfi rolling | katib-earlystopping +6 | 0.19.0-r21 | — |
| Wolfi rolling | katib-suggestion-goptuna-compat | 0.19.0-r40 | — |
| Wolfi rolling | katib-suggestion-nas-enas | 0.19.0-r32 | — |
| Wolfi rolling | kserve-storage-controller | 0.16.0-r24 | — |
| Wolfi rolling | mycli | 1.67.1-r1 | — |
| Wolfi rolling | neuvector-manager-cli | 5.5.0-r2 | — |
| Wolfi rolling | open-webui | 0.8.12-r1 | — |
| Wolfi rolling | py3-cassandra-medusa | 0.27.0-r6 | — |
| Wolfi rolling | py3.10-pipenv +3 | 2026.8.0-r0 | — |
| Wolfi rolling | py3.10-pygments +4 | 2.20.0-r0 | — |
| Wolfi rolling | pypy-3.10 | 7.3.19-r20 | — |
| Wolfi rolling | pypy-3.11 | 7.3.23-r4 | — |
| Wolfi rolling | reflex | 0.8.28-r2 | — |
| Wolfi rolling | semgrep | 1.157.0-r1 | — |
| Wolfi rolling | superset-6.0 | 6.0.0-r7 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pygments | < 2.20.0 | 2.20.0 | GHSA-5239-wwwm-4pmq |
Advisories 7
- WID-SEC-2026-3046 IBM Concert: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- ALAS2-2026-3817 Low: python3-pygments security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 20, 2026
- ALAS2023-2026-1973 Low: python-pygments security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jul 20, 2026
- SUSE-SU-2026:22093-1 Security update for python-Pygments SUSE / openSUSE Security Updates · Jun 16, 2026
- openSUSE-SU-2026:20931-1 Security update for python-Pygments SUSE / openSUSE Security Updates · Jun 13, 2026
- SUSE-SU-2026:22058-1 Security update for python-Pygments SUSE / openSUSE Security Updates · Jun 13, 2026
- openSUSE-SU-2026:10476-1 python311-Pygments-2.20.0-2.1 on GA media SUSE / openSUSE Security Updates · Apr 2, 2026
References
- VDB-352327 | pygments archetype.py AdlLexer redos vdb-entry technical-description
- VDB-352327 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- Submit #774685 | pygments <=2.19.2 Denial of Service third-party-advisory
- https://github.com/pygments/pygments/issues/3058 exploit issue-tracking
- https://github.com/pygments/pygments/ product