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 package | Versions | Reported by |
|---|---|---|
| hosted-git-info | from unspecified before 3.0.8 | CVE List |
| hosted-git-info (npm) | before 2.8.9, from 3.0.0 before 3.0.8 | GitHub Advisory Database |
| npmjs hosted-git-info | from 2.0.0 before 2.8.9, from 3.0.0 before 3.0.8 | NVD |
| siemens sinec_infrastructure_network_services | before 1.0.1.1 | NVD |
All scores
| snyk | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.0medium CVSS:2.0 | AV: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-1088355 | exploit, patch, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356 | exploit, patch, third-party-advisory, web | |
| https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3 | patch, third-party-advisory, web | |
| https://github.com/npm/hosted-git-info/commits/v2 | patch, third-party-advisory, web | |
| https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7 | patch, third-party-advisory, web | |
| https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01 | patch, third-party-advisory, web | |
| https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23362 | advisory | |
| https://github.com/npm/hosted-git-info/pull/76 | web | |
| https://github.com/npm/hosted-git-info | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23362 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-43f8-2h32-f4cj changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2021-23362 changed 2026-06-17 | Public domain |