CVE-2022-21195 Regular Expression Denial of Service (ReDoS)
Attackers can cause CPU exhaustion and service crashes in applications using the url-regex library via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-21195?
CVE-2022-21195 is a medium-severity denial of service vulnerability in url-regex, published on 20 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of package url-regex are vulnerable to Regular Expression Denial of Service (ReDoS) which can cause the CPU usage to crash.
Weakness: CWE-1333
Which versions are affected by CVE-2022-21195?
2 open source packages ship an affected version, including url-regex and url_regex. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
url-regex PyPI | All versions to 1.0.4 | None |
url_regex PyPI | All versions to 1.0.4 | None |
Products include Url-Regex Project Url-Regex.
How do I fix CVE-2022-21195?
No fix has been published for CVE-2022-21195 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-21195 being exploited?
There is no known exploitation of CVE-2022-21195 in the wild and no public exploit code.
Other vulnerabilities in url-regex
Sources
Also known as GHSA-hg3w-7hj9-m3f7.