# CVE-2026-4539: pygments archetype.py AdlLexer redos

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-22T05:35:12.096Z
- Modified: 2026-09-10T03:50:59.780Z
- Also known as: GHSA-5239-wwwm-4pmq, PYSEC-2026-2987
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- pygments: 2.19.0; 2.19.1; 2.19.2
- pygments (PyPI): before 2.20.0

## Every score

- VulDB: 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`
- VulDB: 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`
- VulDB: 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`
- VulDB: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR`
- GitHub: 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`
- GitHub: CVSS:4.0 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`
- PyPA Advisory Database: 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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/pygments/pygments/issues/3058> (exploit, issue-tracking, web)
- <https://vuldb.com/?id.352327> (technical-description, vdb-entry, web)
- <https://vuldb.com/?ctiid.352327> (permissions-required, signature, web)
- <https://vuldb.com/?submit.774685> (third-party-advisory, web)
- <https://github.com/pygments/pygments/> (product)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4539> (advisory)
- <https://github.com/pygments/pygments/pull/3064> (web)
- <https://github.com/pygments/pygments/commit/24b8aa76c6cd6d70f39c6dd605cce319c98e2ccc> (web)
- <https://github.com/pygments/pygments> (package)
- <https://github.com/pygments/pygments/releases/tag/2.20.0> (web)
- <https://pypi.org/project/pygments> (package)
- <https://github.com/advisories/GHSA-5239-wwwm-4pmq> (advisory)

## Sources

- CVE List: [CVE-2026-4539](https://www.cve.org/CVERecord?id=CVE-2026-4539), CVE Terms of Use, modified 2026-03-23
- GitHub Advisory Database: [GHSA-5239-wwwm-4pmq](https://github.com/advisories/GHSA-5239-wwwm-4pmq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-4539](https://nvd.nist.gov/vuln/detail/CVE-2026-4539), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2987](https://osv.dev/vulnerability/PYSEC-2026-2987), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-4539 · Whole record: https://cve.day/CVE-2026-4539.json · Rebuilt by cve.day 2026-11-25T22:59:16.427Z
