CVE-2019-17592 Regular Expression Denial of Service in csv-parse

High 7.5 Published Updated

An attacker can cause a denial of service in applications using the csv-parse library by providing crafted input when the cast option is enabled.

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

What is CVE-2019-17592?

CVE-2019-17592 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 14 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The csv-parse module before 4.4.6 for Node.js is vulnerable to Regular Expression Denial of Service. The __isInt() function contains a malformed regular expression that processes large crafted input very slowly. This is triggered when using the cast option.

Weakness: CWE-400

Which versions are affected by CVE-2019-17592?

2 open source packages ship an affected version, including csv-parse. It affects 2 products.

PackageAffectedFixed in
csv-parse npmAll versions4.4.6
csv-parse npmAll versions4.4.6

Products include Csv-Parse Project Csv-Parse, Fedoraproject Fedora.

How do I fix CVE-2019-17592?

Upgrade csv-parse to 4.4.6 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-2019-17592 being exploited?

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

Sources

Also known as GHSA-582f-p4pg-xc74.

Is CVE-2019-17592 in your software?

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

Check your SBOMs for free