CVE-2021-23343: Regular Expression Denial of Service (ReDoS)

Published May 4, 2021
·
Updated

A flaw was found in nodejs-path-parse. All versions of package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.

Other sources

All versions of package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.

References: https://snyk.io/vuln/SNYK-JS-PATHPARSE-1077067 https://github.com/jbgutierrez/path-parse/issues/8

Red Hat

path-parse is vulnerable to a denial of service. By sending a specially-crafted request via splitDeviceRe, splitTailRe, and splitPathRe regular expressions, a remote attacker could exploit this vulnerability to cause a regular expression denial of service (ReDoS).

IBM

Affected Software

6 affected componentsFixes available
redhat/rh-nodejs14-nodejs<0:14.17.5-1.el7
0:14.17.5-1.el7
redhat/rh-nodejs12-nodejs<0:12.22.5-1.el7
0:12.22.5-1.el7
redhat/rh-nodejs12-nodejs-nodemon<0:2.0.3-5.el7
0:2.0.3-5.el7
redhat/ovirt-engine-ui-extensions<0:1.2.7-1.el8e
0:1.2.7-1.el8e
redhat/path-parse<1.0.7
1.0.7
Path-parse Project Path-parse Node.js<1.0.7

Event History

May 4, 2021
CVE Published
12:00 AM
CVE Published
via MITRE·08:25 AM
Data Sourced
via MITRE·08:25 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·01:29 PM
DescriptionSeverityAffected Software
Oct 25, 2021
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this vulnerability?

CVE-2021-23343

2

What is the severity of CVE-2021-23343?

The severity of CVE-2021-23343 is medium with a CVSS score of 5.3.

3

Which software versions are affected by CVE-2021-23343?

All versions up to and including 1.0.7 of the path-parse package are affected. Additionally, versions 0:14.17.5-1.el7 and 0:12.22.5-1.el7 of rh-nodejs14-nodejs and rh-nodejs12-nodejs respectively are also affected.

4

How can an attacker exploit CVE-2021-23343?

An attacker can exploit CVE-2021-23343 by sending a specially-crafted request via certain regular expressions, causing a regular expression denial of service (ReDoS).

5

How can CVE-2021-23343 be fixed?

To fix CVE-2021-23343, it is recommended to update the path-parse package to version 1.0.8 or later. For rh-nodejs14-nodejs and rh-nodejs12-nodejs, update to versions 0:14.17.6-1.el7 and 0:12.22.6-1.el7 respectively.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203