# CVE-2021-23362: Regular Expression Denial of Service (ReDoS)

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.61%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-03-23T16:20:14.854Z
- Modified: 2026-06-17T03:38:37.500Z
- Also known as: GHSA-43f8-2h32-f4cj
- Weaknesses: CWE-400, CWE-1333
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- hosted-git-info: from unspecified before 3.0.8
- hosted-git-info (npm): before 2.8.9; from 3.0.0 before 3.0.8
- npmjs hosted-git-info: from 2.0.0 before 2.8.9; from 3.0.0 before 3.0.8
- siemens sinec_infrastructure_network_services: before 1.0.1.1

## Every score

- snyk: CVSS:3.1 5.3 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## 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

- CVE List: [CVE-2021-23362](https://www.cve.org/CVERecord?id=CVE-2021-23362), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-43f8-2h32-f4cj](https://github.com/advisories/GHSA-43f8-2h32-f4cj), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2021-23362](https://nvd.nist.gov/vuln/detail/CVE-2021-23362), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23362 · Whole record: https://cve.day/CVE-2021-23362.json · Rebuilt by cve.day 2026-11-25T22:58:00.395Z
