{"id":"CVE-2021-23362","published":"2021-03-23T16:20:14Z","modified":"2024-09-17T03:02:03Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03612,"percentile":0.89759,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/hosted-git-info/commits/v2","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01","tags":["x_refsource_MISC"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":17.95},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"hosted-git-info","versions":[">= unspecified, < 3.0.8"]}],"affected":[{"ecosystem":"npm","package":"hosted-git-info","vulnerableRanges":["<2.8.9",">=3.0.0, <3.0.8"],"patched":["2.8.9","3.0.8"],"from":["GHSA-43f8-2h32-f4cj"],"provenance":"source"}],"summary":{"text":"The hosted-git-info package before version 3.0.8 contains a Regular Expression Denial of Service flaw in the shortcutMatch regular expression used by the fromUrl function in index.js, which exhibits polynomial worst-case time complexity. An attacker who can get a crafted input string to fromUrl can cause excessive CPU consumption and slow or stall the process, with no authentication, user interaction, or special configuration required beyond network reachability to the affected service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:15Z"},"euvd":{"id":"EUVD-2021-0928","exploited":false,"provenance":"source"}}