PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseGHSA-rr87-p3f8-qhxj

GHSA-rr87-p3f8-qhxj: 
Python vulnerability analysis and mitigation

Summary

memtomem's shared credential detector (privacy.py, DEFAULT_PATTERNS) contains a JWT rule whose cost is quadratic in the length of a run of base64url characters: \beyJ[A-Za-z0-9_-]{8,}.[A-Za-z0-9_-]{8,}.[A-Za-z0-9_-]{8,}\b A match can be attempted after every - inside such a run, and each attempt scans to the end of the run. privacy.scan() scans the whole input with no length cap, and it runs on the write path (mem_add and indexing) and in session-tracing redaction, so a crafted text holds that path until the scan finishes. Severity: High (availability). No data is exposed. No CVSS vector or CVE is asserted yet.

Measured (main 2f9eae64, Python 3.13, privacy.scan)

inputtime
eyJ- repeated, 64 KB0.51 s
eyJ- repeated, 128 KB1.97 s
eyJ- repeated, 256 KB7.75 s

memtomem-stm carries the same rule byte-for-byte in its CREDENTIAL_PATTERNS (GHSA-3v6c-9qpg-gf63, draft). The two advisories are published together.

Fix

The rule is replaced with the linear-time form memtomem-stm adopted, which gives the same yes/no answer, match count and match ends: \beyJ(?=[A-Za-z0-9_-]{8})[A-Za-z0-9_]+(?:-(?!eyJ[A-Za-z0-9_-]{8})[A-Za-z0-9_]+)*+.[A-Za-z0-9_-]{8,}.[A-Za-z0-9_-]{8,}\b memtomem also uses match starts (redaction in session tracing, the span_start reported by the privacy audit commands), so scan() restores each JWT match's start to where the old rule began it. The browser-side pattern list keeps the old rule, unchanged.


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-49wc-vv82-h8j7CRITICAL9.3
  • Python logoPython
  • harp-proxy
NoYesOct 24, 2026
GHSA-jpw8-42g9-g437HIGH7.4
  • Python logoPython
  • harp-proxy
NoNoOct 24, 2026
GHSA-vvjr-4qwm-6xjxMEDIUM4.8
  • Python logoPython
  • harp-proxy
NoNoOct 24, 2026
GHSA-rr87-p3f8-qhxjHIGHN/A
  • Python logoPython
  • memtomem
NoYesOct 24, 2026
GHSA-3v6c-9qpg-gf63HIGHN/A
  • Python logoPython
  • memtomem-stm
NoYesOct 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management