Resource exhaustion in C2fo Fast-Csv
CVE-2020-26256
Fast-csv is an npm package for parsing and formatting CSVs or any other delimited value file in node. In fast-cvs before version 4.3.6 there is a possible ReDoS vulnerability (Regular Expression Denial of Service) when using ignoreEmpty option when parsing. This has been patched in `v4.3.6` You will only be affected by this if you use the `ignoreEmpty` parsing option. If you do use this option it is recommended that you upgrade to the latest version `v4.3.6` This vulnerability was found using a CodeQL query which identified `EMPTY_ROW_REGEXP` regular expression as vulnerable.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.7 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.015, 75.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- C2fo Fast-Csv — versions < 4.3.6
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (engn33r/awesome-redos-security, ossf-cve-benchmark/CVE-2020-26256). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/C2FO/fast-csv/security/advisories/GHSA-8cv5-p934-3hwp (Third Party Advisory)
- lgtm.com/query/8609731774537641779/ (Exploit, Third Party Advisory)
- github.com/C2FO/fast-csv/issues/540 (Third Party Advisory)
- github.com/C2FO/fast-csv/commit/4bbd39f26a8cd7382151ab4f5fb102234b2f829e (Patch, Third Party Advisory)
- www.npmjs.com/package/@fast-csv/parse
- www.npmjs.com/package/fast-csv (Product, Third Party Advisory)