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.

INFO

Published Date :

March 23, 2021, 5:15 p.m.

Last Modified :

Nov. 21, 2024, 5:51 a.m.

Remotely Exploitable :

Yes !

Impact Score :

1.4

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2021-23362 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2021-23362 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Siemens sinec_infrastructure_network_services
1 Npmjs hosted-git-info
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-23362.

URL Resource
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7 Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01 Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3 Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commits/v2 Patch Third Party Advisory
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356 Exploit Patch Third Party Advisory
https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355 Exploit Patch Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7 Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01 Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3 Patch Third Party Advisory
https://github.com/npm/hosted-git-info/commits/v2 Patch Third Party Advisory
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356 Exploit Patch Third Party Advisory
https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355 Exploit Patch Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

JavaScript TypeScript

Updated: 2 years, 9 months ago
0 stars 0 fork 0 watcher
Born at : March 22, 2022, 12:59 p.m. This repo has been linked 1 different CVEs too.

List of RegEx DoS (ReDoS) CVEs and resources

security awesome redos regex dos regex-dos pentesting awesome-list regex-security

Updated: 2 months, 1 week ago
24 stars 2 fork 2 watcher
Born at : June 10, 2021, 1:57 a.m. This repo has been linked 76 different CVEs too.

Audits an NPM package.json file to identify known vulnerabilities.

hacktoberfest

JavaScript TypeScript

Updated: 2 weeks, 6 days ago
224 stars 53 fork 53 watcher
Born at : Sept. 1, 2015, 6:16 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-23362 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-23362 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
    Added Reference https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7
    Added Reference https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01
    Added Reference https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
    Added Reference https://github.com/npm/hosted-git-info/commits/v2
    Added Reference https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
    Added Reference https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CWE Remap by [email protected]

    Aug. 08, 2023

    Action Type Old Value New Value
    Changed CWE NVD-CWE-Other CWE-1333
  • Modified Analysis by [email protected]

    Apr. 08, 2022

    Action Type Old Value New Value
    Changed Reference Type https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf No Types Assigned https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf Patch, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:* versions up to (excluding) 1.0.1.1
  • CVE Modified by [email protected]

    Mar. 10, 2022

    Action Type Old Value New Value
    Added Reference https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf [No Types Assigned]
  • Modified Analysis by [email protected]

    Jun. 08, 2021

    Action Type Old Value New Value
    Changed Reference Type https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7 No Types Assigned https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7 Patch, Third Party Advisory
    Changed Reference Type https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01 No Types Assigned https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01 Patch, Third Party Advisory
    Changed Reference Type https://github.com/npm/hosted-git-info/commits/v2 No Types Assigned https://github.com/npm/hosted-git-info/commits/v2 Patch, Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:* versions up to (excluding) 3.0.8 OR *cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:* versions from (including) 2.0.0 up to (excluding) 2.8.9 *cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:* versions from (including) 3.0.0 up to (excluding) 3.0.8
  • CVE Modified by [email protected]

    Jun. 07, 2021

    Action Type Old Value New Value
    Added Reference https://github.com/npm/hosted-git-info/commits/v2 [No Types Assigned]
    Added Reference https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7 [No Types Assigned]
    Added Reference https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01 [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 05, 2021

    Action Type Old Value New Value
    Changed Description The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via shortcutMatch in fromUrl(). 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.
  • Initial Analysis by [email protected]

    Mar. 25, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:N/A:P)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
    Changed Reference Type https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3 No Types Assigned https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3 Patch, Third Party Advisory
    Changed Reference Type https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356 No Types Assigned https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356 Exploit, Patch, Third Party Advisory
    Changed Reference Type https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355 No Types Assigned https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355 Exploit, Patch, Third Party Advisory
    Added CWE NIST NVD-CWE-Other
    Added CPE Configuration OR *cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:* versions up to (excluding) 3.0.8
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-23362 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-23362 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.24 }} -0.09%

score

0.61160

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability