CVE-2021-23362 Regular Expression Denial of Service (ReDoS)
MediumCVSS 5.3
EPSS 3.6%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-hosted-git-info(Debian 12) | < 3.0.8-1 | 3.0.8-1 | Fixed |
| debian/node-hosted-git-info(Debian 13) | < 3.0.8-1 | 3.0.8-1 | Fixed |
| debian/node-hosted-git-info(Debian 14) | < 3.0.8-1 | 3.0.8-1 | Fixed |
| npm hosted-git-info(npm) | < 2.8.9; >= 3.0.0, < 3.0.8 | 2.8.9, 3.0.8 | Fixed |
| npmjs hosted-git-info | >= 2.0.0, < 2.8.9; >= 3.0.0, < 3.0.8 | 2.8.9, 3.0.8 | Fixed |
| Siemens sinec infrastructure network services | < 1.0.1.1 | 1.0.1.1 | Fixed |
| ubuntu/node-hosted-git-info(Ubuntu Pro 18.04) | < 2.5.0-1ubuntu0.1~esm1; = 2.1.5-1; = 2.5.0-1 | 2.5.0-1ubuntu0.1~esm1 | Fixed |
| ubuntu/node-hosted-git-info(Ubuntu Pro 20.04) | < 2.8.5-1ubuntu0.1~esm1; = 2.7.1-1; = 2.8.5-1 | 2.8.5-1ubuntu0.1~esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm hosted-git-info(npm) | >= 3.0.0, < 3.0.8 | 3.0.8 |
| npm hosted-git-info(npm) | < 2.8.9 | 2.8.9 |
| debian/node-hosted-git-info(Debian:12) | < 3.0.8-1 | 3.0.8-1 |
| debian/node-hosted-git-info(Debian:14) | < 3.0.8-1 | 3.0.8-1 |
| debian/node-hosted-git-info(Debian:13) | < 3.0.8-1 | 3.0.8-1 |
| npmjs hosted-git-info | >= 2.0.0, < 2.8.9 | 2.8.9 |
| npmjs hosted-git-info | >= 3.0.0, < 3.0.8 | 3.0.8 |
| Siemens sinec infrastructure network services | < 1.0.1.1 | 1.0.1.1 |
| ubuntu/node-hosted-git-info(Ubuntu:Pro:18.04) | < 2.5.0-1ubuntu0.1~esm1 | 2.5.0-1ubuntu0.1~esm1 |
| ubuntu/node-hosted-git-info(Ubuntu:Pro:18.04) | = 2.1.5-1 | No fix listed |
| ubuntu/node-hosted-git-info(Ubuntu:Pro:18.04) | = 2.5.0-1 | No fix listed |
| ubuntu/node-hosted-git-info(Ubuntu:Pro:20.04) | < 2.8.5-1ubuntu0.1~esm1 | 2.8.5-1ubuntu0.1~esm1 |
| ubuntu/node-hosted-git-info(Ubuntu:Pro:20.04) | = 2.7.1-1 | No fix listed |
| ubuntu/node-hosted-git-info(Ubuntu:Pro:20.04) | = 2.8.5-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- snyk.io exploit issue-tracking patch third-party-advisory
- snyk.io exploit issue-tracking patch third-party-advisory
- github.com patch
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- cert-portal.siemens.com patch third-party-advisory
- github.com
- Debian Security Tracker CVE-2021-23362 vendor-advisory
- github.com product
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking