Medium severity · published Mar 23, 2021
CVE-2021-23362
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
5.3
CVSS
3.6%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)3.6% · higher than 89% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HO
Hosted-git-info · Npmjs
2.0.0 before 2.8.9; 3.0.0 before 3.0.8 · source: NVD
SI
Sinec Infrastructure Network Services · Siemens
before 1.0.1.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-23362
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-23362
Patch
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
Patch
https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7
Patch
https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01
Patch
https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
Patch
https://github.com/npm/hosted-git-info/commits/v2
Exploit
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
