Vulnerability Description
The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular expression exhibits polynomial worst-case time complexity.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Npmjs | Hosted-Git-Info | >= 2.0.0, < 2.8.9 |
| Siemens | Sinec Infrastructure Network Services | < 1.0.1.1 |
Related Weaknesses (CWE)
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2bPatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696cPatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a9PatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commits/v2PatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356ExploitPatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355ExploitPatchThird Party Advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2bPatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696cPatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a9PatchThird Party Advisory
- https://github.com/npm/hosted-git-info/commits/v2PatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356ExploitPatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355ExploitPatchThird Party Advisory
FAQ
What is CVE-2021-23362?
CVE-2021-23362 is a vulnerability with a CVSS score of 5.3 (MEDIUM). The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular e...
How severe is CVE-2021-23362?
CVE-2021-23362 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-23362?
Check the references section above for vendor advisories and patch information. Affected products include: Npmjs Hosted-Git-Info, Siemens Sinec Infrastructure Network Services.