Skip to content

ISSUE SECURITY Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching #3065

@athlona64

Description

@athlona64

Source
GHSA-5239-wwwm-4pmq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-5239-wwwm-4pmq/GHSA-5239-wwwm-4pmq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5239-wwwm-4pmq
Aliases
CVE-2026-4539
Published
2026-03-22T06:30:15Z
Modified
2026-03-24T20:46:28.518096Z
Severity
3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
1.9 (Low) CVSS_V4 - 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 Calculator
Summary
Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
Details
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.

Database specific
{
"severity": "LOW",
"nvd_published_at": "2026-03-22T06:16:20Z",
"github_reviewed_at": "2026-03-24T20:33:39Z",
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true
}
References
https://nvd.nist.gov/vuln/detail/CVE-2026-4539
#3058
https://github.com/pygments/pygments
https://vuldb.com/?ctiid.352327
https://vuldb.com/?id.352327
https://vuldb.com/?submit.774685

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions