CVE-2022-21195 Regular Expression Denial of Service (ReDoS)

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
url-regex PyPIAll versions to 1.0.4None
url_regex PyPIAll versions to 1.0.4None

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.

Sources

Also known as GHSA-hg3w-7hj9-m3f7.

Is CVE-2022-21195 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free