CVE-2021-4299 cronvel string-kit naturalSort.js naturalSort redos

Medium 4.3 Published Updated

Remote attackers can cause denial of service in string-kit via inefficient regular expression complexity in naturalSort.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-4299?

CVE-2021-4299 is a medium-severity denial of service vulnerability in cronvel string-kit, published on 2 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability classified as problematic was found in cronvel string-kit up to 0.12.7. This vulnerability affects the function naturalSort of the file lib/naturalSort.js. The manipulation leads to inefficient regular expression complexity. The attack can be initiated remotely. Upgrading to version 0.12.8 is able to address this issue. The name of the patch is 9cac4c298ee92c1695b0695951f1488884a7ca73. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-217180.

Weakness: CWE-1333

Which versions are affected by CVE-2021-4299?

2 open source packages ship an affected version, including string-kit. It affects 1 product.

PackageAffectedFixed in
string-kit npmAll versions0.12.8
string-kit npmAll versions0.12.8

Products include String Kit Project String Kit.

How do I fix CVE-2021-4299?

Upgrade string-kit to 0.12.8 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-4299 being exploited?

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

Sources

Also known as GHSA-pfrm-4rjw-g9q5.

Is CVE-2021-4299 in your software?

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

Check your SBOMs for free