Skip to main content
CVE-2026-4539VulnerabilityPublished Updated

Literate git: Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching

Affects literate-gitSource GCVE Database

0
Compare
Authoritative record:CVE-2026-4539· Medium 4.8

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

CVSS 4.0 base score
4.8Medium
How severe the flaw is on the 0–10 CVSS scale.
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:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewliterate-gitpkg:brew/literate-gitOther threatsAffected
  • >=0.3.1 <0.5.1_2
Fixed in
  • 0.5.1_2

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

Community reviews

Loading reviews…