Literate git: Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
Affects literate-gitSource GCVE Database
Public exploit available · CVSS 4.8 Medium : upgrade to 0.5.1_2 as a priority.
Data as of 18 Nov 2026, 18:04 UTC
- Patch
- Available – fixed in 0.5.1_2
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:PExploitation evidence
Disclosed: evidence found.
CVE published 22 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Upgrade literate-git to 0.5.1_2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewliterate-gitpkg:brew/literate-gitOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in literate-git version 0.5.1_2 that fixes this vulnerability. Users should upgrade to version 0.5.1_2 or later to remediate this issue. Since the vulnerability requires local access, restricting local user permissions may also reduce risk but upgrading is the recommended action.
Description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the AdlLexer function of pygments/lexers/archetype.py in the literate-git project before version 0.5.1_2. This flaw involves inefficient regex complexity for GUID matching, which can be exploited locally to cause denial of service. The vulnerability has a low CVSS score of 3.3 and does not impact confidentiality or integrity, only availability. A fix is available in version 0.5.1_2.
References
- nvd.nist.gov/vuln/detail/CVE-2026-4539 (opens in a new tab)
- github.com/pygments/pygments/issues/3058 (opens in a new tab)
- github.com/pygments/pygments/pull/3064 (opens in a new tab)
- github.com/pygments/pygments/commit/24b8aa76c6cd6d70f39c6dd605cce319c98e2ccc (opens in a new tab)
- github.com/pygments/pygments (opens in a new tab)
- github.com/pygments/pygments/releases/tag/2.20.0 (opens in a new tab)
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)