CVE-2021-23362
JSON

5.3medium

Regular Expression Denial of Service (ReDoS)

Severity
5.3medium CVSS:3.1 by snyk
Exploit likelihood
3.61% (higher than 89% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-43f8-2h32-f4cj

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.

Affected

Product or packageVersionsReported by
hosted-git-infofrom unspecified before 3.0.8CVE List
hosted-git-info (npm)before 2.8.9, from 3.0.0 before 3.0.8GitHub Advisory Database
npmjs hosted-git-infofrom 2.0.0 before 2.8.9, from 3.0.0 before 3.0.8NVD
siemens sinec_infrastructure_network_servicesbefore 1.0.1.1NVD

All scores

snyk5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

The npm 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

NVD (es)

El paquete hosted-git-info anterior a la versión 3.0.8 es vulnerable a la Denegación de Servicio por Expresión Regular (ReDoS) a través de la expresión regular shortcutMatch en la función fromUrl en index.js. La expresión regular afectada muestra una complejidad de tiempo polinómica en el peor de los casos

References

https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355exploit, patch, third-party-advisory, web
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356exploit, patch, third-party-advisory, web
https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3patch, third-party-advisory, web
https://github.com/npm/hosted-git-info/commits/v2patch, third-party-advisory, web
https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7patch, third-party-advisory, web
https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01patch, third-party-advisory, web
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-23362advisory
https://github.com/npm/hosted-git-info/pull/76web
https://github.com/npm/hosted-git-infopackage

Sources

SourceRecordLicence
CVE ListCVE-2021-23362 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-43f8-2h32-f4cj changed 2025-01-14CC-BY-4.0
NVDCVE-2021-23362 changed 2026-06-17Public domain