CVE-2021-23392 Regular Expression Denial of Service (ReDoS)

Medium 5.3 Published Updated

Attackers can cause denial of service in applications using the locutus library via a crafted input to the gopher_parsedir function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23392?

CVE-2021-23392 is a medium-severity denial of service vulnerability in locutus, published on 8 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The package locutus before 2.0.15 are vulnerable to Regular Expression Denial of Service (ReDoS) via the gopher_parsedir function.

Which versions are affected by CVE-2021-23392?

2 open source packages ship an affected version, including locutus. It affects 1 product.

PackageAffectedFixed in
locutus npmAll versions2.0.15
locutus npmAll versions2.0.15

Products include Locutus Locutus.

How do I fix CVE-2021-23392?

Upgrade locutus to 2.0.15 or later.

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-2021-23392 being exploited?

There is no known exploitation of CVE-2021-23392 in the wild and no public exploit code.

Sources

Also known as GHSA-39q4-p535-c852, SNYK-JS-LOCUTUS-1090597.

Is CVE-2021-23392 in your software?

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

Check your SBOMs for free