Mac cleanup py: Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
Affects mac-cleanup-pySource GCVE Database
Public exploit available · CVSS 4.8 Medium : upgrade to 3.4.0 as a priority.
Data as of 30 Oct 2026, 07:30 UTC
- Patch
- Available – fixed in 3.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: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 29 Oct 2026.
What to do
Upgrade mac-cleanup-py to 3.4.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewmac-cleanup-pypkg:brew/mac-cleanup-pyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
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)