CVE-2026-4539
pygments archetype.py AdlLexer redos
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.8
pygments archetype.py AdlLexer redos
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.
- Record
CVE-2026-4539- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R - CVSS 3.0
- 3.3 Low
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R - CVSS 2.0
- 1.7
AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR - Weakness
- CWE-1333, CWE-400
- Updated
- 2026-11-02
EUVDEUVD-2026-14287
4.8
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.
- Record
EUVD-2026-14287- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-5239-wwwm-4pmq
1.9
Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
A security flaw has been discovered in pygments before 2.20.0. 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.
- Record
GHSA-5239-wwwm-4pmq- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-400, CWE-1333
- Updated
- 2026-11-02
NVD
1.9
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.
- Record
CVE-2026-4539- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - CVSS 2.0
- 1.7 Low
AV:L/AC:L/Au:S/C:N/I:N/A:P - Weakness
- CWE-400, CWE-1333
- Updated
- 2026-11-02
OSV
1.9
pygments archetype.py AdlLexer redos
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.
- Record
CVE-2026-4539- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - Weakness
- CWE-1333, CWE-400
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-4539
1.9
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.
- Record
DEBIAN-CVE-2026-4539- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-02
Show 11 moreShow less
OSVGHSA-5239-wwwm-4pmq
1.9
Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
A security flaw has been discovered in pygments before 2.20.0. 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.
- Record
GHSA-5239-wwwm-4pmq- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-1333, CWE-400
- Updated
- 2026-11-02
OSVOESA-2026-1873
3.3
python-pygments security update
\
Security Fix(es):
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.(CVE-2026-4539)
- Record
OESA-2026-1873- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVPYSEC-2026-2987
1.9
Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
A security flaw has been discovered in pygments before 2.20.0. 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.
- Record
PYSEC-2026-2987- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-4539
1.9
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.
- Record
UBUNTU-CVE-2026-4539- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVMGASA-2026-0090 No score
Updated python-pygments packages fix security vulnerability
A security flaw in Pygments function AdlLexer in archetype.py stems from a regular expression having an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles. (CVE-2026-4539)
- Record
MGASA-2026-0090- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10476-1 No score
python311-Pygments-2.20.0-2.1 on GA media
These are all security issues fixed in the python311-Pygments-2.20.0-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10476-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:20931-1 No score
Security update for python-Pygments
This update for python-Pygments fixes the following issue:
- CVE-2026-4539: Denial of Service via inefficient regular expression processing in AdlLexer (bsc#1260796).
- Record
openSUSE-SU-2026:20931-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:1666-1 No score
Security update for python-Pygments
This update for python-Pygments fixes the following issues:
- CVE-2026-4539: inefficient regex for GUID and ID pattern matching can lead to archetype lexer ReDoS (bsc#1260796).
- Record
SUSE-SU-2026:1666-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:1667-1 No score
Security update for python-Pygments
This update for python-Pygments fixes the following issues:
- CVE-2026-4539: inefficient regex for GUID and ID pattern matching can lead to archetype lexer ReDoS (bsc#1260796).
- Record
SUSE-SU-2026:1667-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:22058-1 No score
Security update for python-Pygments
This update for python-Pygments fixes the following issue:
- CVE-2026-4539: Denial of Service via inefficient regular expression processing in AdlLexer (bsc#1260796).
- Record
SUSE-SU-2026:22058-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:22093-1 No score
Security update for python-Pygments
This update for python-Pygments fixes the following issue:
- CVE-2026-4539: Denial of Service via inefficient regular expression processing in AdlLexer (bsc#1260796).
- Record
SUSE-SU-2026:22093-1- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pygmentsPyPI |
before 2.20.0 | 2.20.0 |
pygmentsDebian:12 |
All versions, plus listed versions 2.14.0+dfsg-12.15.0+dfsg-12.15.1+dfsg-12.17.2+dfsg-12.18.0+dfsg-1 Show 4 moreShow less2.18.0+dfsg-22.19.2+dfsg-12.20.0+dfsg-12.20.0+dfsg-2 |
None known |
pygmentsDebian:13 |
All versions, plus listed versions 2.18.0+dfsg-22.19.2+dfsg-12.20.0+dfsg-12.20.0+dfsg-2 |
None known |
pygmentsDebian:14 |
before 2.20.0+dfsg-1, plus listed versions 2.18.0+dfsg-22.19.2+dfsg-1 |
2.20.0+dfsg-1 |
pygmentsPyPI |
before 2.20.0, plus listed versions 0.100.110.11.10.50.5.1 Show 45 moreShow less0.60.70.7.10.80.8.10.91.01.11.1.11.21.2.11.2.21.31.3.11.41.51.61.6rc12.02.0.12.0.22.0rc12.12.1.12.1.22.1.32.10.02.11.02.11.12.11.22.12.02.13.02.14.02.15.02.15.12.16.02.16.12.17.02.17.12.17.22.18.02.19.02.19.12.19.22.2.0 |
2.20.0 |
python-pygmentsMageia:9 |
before 2.15.1-1.1.mga9 | 2.15.1-1.1.mga9 |
python-pygmentsopenEuler:24.03-LTS-SP1 |
before 2.17.2-2.oe2403sp1 | 2.17.2-2.oe2403sp1 |
python-pygmentsopenEuler:24.03-LTS-SP2 |
before 2.17.2-2.oe2403sp2 | 2.17.2-2.oe2403sp2 |
python-pygmentsopenEuler:24.03-LTS-SP3 |
before 2.17.2-2.oe2403sp3 | 2.17.2-2.oe2403sp3 |
python-pygmentsopenEuler:20.03-LTS-SP4 |
before 2.5.2-7.oe2003sp4 | 2.5.2-7.oe2003sp4 |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
python-pygmentsopenEuler:22.03-LTS-SP4 |
before 2.10.0-5.oe2203sp4 | 2.10.0-5.oe2203sp4 |
python-pygmentsopenEuler:24.03-LTS |
before 2.17.2-2.oe2403 | 2.17.2-2.oe2403 |
python-PygmentsSUSE:Linux Micro 6.2 |
before 2.19.1-160000.3.1 | 2.19.1-160000.3.1 |
python-PygmentsSUSE:Linux Enterprise Server 16.0 |
before 2.19.1-160000.3.1 | 2.19.1-160000.3.1 |
python-PygmentsSUSE:Linux Enterprise Server for SAP applications 16.0 |
before 2.19.1-160000.3.1 | 2.19.1-160000.3.1 |
pygmentsUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 1.6+dfsg-11.6+dfsg-1build11.6+dfsg-1ubuntu11.6+dfsg-1ubuntu1.11.6+dfsg-1ubuntu1.1+esm1 |
None known |
pygmentsUbuntu:16.04:LTS |
All versions, plus listed versions 2.0.1+dfsg-1.1svn12.0.1+dfsg-1.1ubuntu12.1+dfsg-12.1+dfsg-1ubuntu0.12.1+dfsg-1ubuntu0.2 |
None known |
pygmentsUbuntu:18.04:LTS |
All versions, plus listed versions 2.2.0+dfsg-12.2.0+dfsg-1ubuntu0.12.2.0+dfsg-1ubuntu0.2 |
None known |
pygmentsUbuntu:20.04:LTS |
All versions, plus listed versions 2.3.1+dfsg-1ubuntu12.3.1+dfsg-1ubuntu22.3.1+dfsg-1ubuntu2.12.3.1+dfsg-1ubuntu2.2 |
None known |
pygmentsUbuntu:22.04:LTS |
All versions, plus listed versions 2.7.1+dfsg-2.12.10.0+dfsg-12.11.2+dfsg-22.11.2+dfsg-2ubuntu0.1 |
None known |
pygmentsUbuntu:24.04:LTS |
All versions, plus listed versions 2.15.1+dfsg-12.17.2+dfsg-1 |
None known |
pygmentsUbuntu:25.10 |
All versions, plus listed versions 2.18.0+dfsg-2 |
None known |
pygmentsUbuntu:26.10 |
All versions, plus listed versions 2.19.2+dfsg-12.20.0+dfsg-2 |
None known |
pygmentsUbuntu:26.04:LTS |
All versions, plus listed versions 2.18.0+dfsg-22.18.0+dfsg-2build12.19.2+dfsg-1 |
None known |
python-PygmentsopenSUSE:Tumbleweed |
before 2.20.0-2.1 | 2.20.0-2.1 |
python-PygmentsopenSUSE:Leap 16.0 |
before 2.19.1-160000.3.1 | 2.19.1-160000.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-4539 is a medium vulnerability (CVSS 4.8) in pygments, published March 22, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.16%, the 5th percentile. Fixed in pygments 2.20.0.
References
vuldb.com?id.352327
vuldb.com?ctiid.352327
vuldb.com?submit.774685
github.com/pygments/pygments/issues/3058
github.com/pygments/pygments
nvd.nist.gov/vuln/detail/CVE-2026-4539
Show 19 moreShow less
github.com/pygments/pygments/pull/3064
github.com/pygments/pygments/commit/24b8aa76c6cd6d70f39c6dd605cce319c98e2ccc
github.com/pygments/pygments/releases/tag/2.20.0
github.com/advisories/GHSA-5239-wwwm-4pmq
github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4539.json
security-tracker.debian.org/tracker/CVE-2026-4539
advisories.mageia.org/MGASA-2026-0090.html
bugs.mageia.org/show_bug.cgi?id=35318
lists.opensuse.org/archives/list/[email protected]/message/EBSMTYMFOHFBVTCLFPVRVEOWXXCIDDMI
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-1873
pypi.org/project/pygments
suse.com/support/update/announcement/2026/suse-su-20261666-1
bugzilla.suse.com/1260796
suse.com/security/cve/CVE-2026-4539
suse.com/support/update/announcement/2026/suse-su-20261667-1
suse.com/support/update/announcement/2026/suse-su-202622058-1
suse.com/support/update/announcement/2026/suse-su-202622093-1
ubuntu.com/security/CVE-2026-4539
cve.org/CVERecord?id=CVE-2026-4539
Left out here: 17 versions. The JSON record has them.