CVE-2021-3820 Inefficient Regular Expression Complexity in pksunkara/inflect
Attackers can cause denial of service in applications using the inflect library by triggering inefficient regular expression complexity.
- 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-3820?
CVE-2021-3820 is a medium-severity denial of service vulnerability in pksunkara/inflect, published on 27 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
inflect is vulnerable to Inefficient Regular Expression Complexity
Weakness: CWE-1333
Which versions are affected by CVE-2021-3820?
2 open source packages ship an affected version, including i. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
i npm | All versions | 0.3.7 |
i npm | All versions | 0.3.7 |
Products include Inflect Project Inflect.
How do I fix CVE-2021-3820?
Upgrade i to 0.3.7 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-3820 being exploited?
There is no known exploitation of CVE-2021-3820 in the wild and no public exploit code.
Sources
Also known as GHSA-x55w-vjjp-222r.