CVE-2021-23362
CVE-2021-23362 · Regular Expression Denial of Service (ReDoS)
CVSS 5.3 · Medium · EPSS 3.6% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- hosted-git-infoUpdate to 3.0.8
- node-hosted-git-info Debian 12Update to 3.0.8-1
- node-hosted-git-info Debian 13Update to 3.0.8-1
- node-hosted-git-info Debian 14Update to 3.0.8-1
- and 3 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="node-hosted-git-info"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- RHSA-2021:3639 · Red Hat rhel eus 8.1 appstream ·
- RHSA-2021:3638 · Red Hat rhel eus 8.2 appstream ·
- RHSA-2021:3073 · Red Hat Enterprise Linux 8 appstream ·
- RHSA-2021:2932 · Red Hat rhel software collections 3 el7 ·
- RHSA-2021:2931 · Red Hat rhel software collections 3 el7 ·
- RHSA-2021:3074 · Red Hat Enterprise Linux 8 appstream ·
- USN-5216-1 · Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·
- ALSA-2021:3074 · AlmaLinux 8 ·
- RLSA-2021:3074 · Rocky Linux 8 ·
- ALSA-2021:3073 · AlmaLinux 8 ·
- RLSA-2021:3073 · Rocky Linux 8 ·
- openSUSE-SU-2021:1113-1 · openSUSE Leap 15.2 ·
- SUSE-SU-2021:2620-1 · SUSE Enterprise Storage 6, SUSE Linux Enterprise High Performance Computing 15-ESPOS, SUSE Linux Enterprise High Performance Computing 15-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS, SUSE Linux Enterprise Module for Web and Scripting 15 SP2, SUSE Linux Enterprise Server 15-LTSS, SUSE Linux Enterprise Server 15 SP1-BCL, SUSE Linux Enterprise Server 15 SP1-LTSS, SUSE Linux Enterprise Server for SAP Applications 15, SUSE Linux Enterprise Server for SAP Applications 15 SP1, SUSE Manager Proxy 4.0, SUSE Manager Retail Branch Server 4.0, SUSE Manager Server 4.0 ·
- openSUSE-SU-2021:2618-1 · openSUSE Leap 15.3 ·
- SUSE-SU-2021:2618-1 · SUSE Linux Enterprise Module for Web and Scripting 15 SP2 ·
- openSUSE-SU-2021:1061-1 · openSUSE Leap 15.2 ·
- openSUSE-SU-2021:1060-1 · openSUSE Leap 15.2 ·
- openSUSE-SU-2021:1059-1 · openSUSE Leap 15.2 ·
- openSUSE-SU-2021:2354-1 · openSUSE Leap 15.3 ·
- SUSE-SU-2021:2354-1 · SUSE Linux Enterprise Module for Web and Scripting 15 SP2, SUSE Linux Enterprise Module for Web and Scripting 15 SP3 ·
- SUSE-SU-2021:2353-1 · SUSE Enterprise Storage 6, SUSE Linux Enterprise High Performance Computing 15-ESPOS, SUSE Linux Enterprise High Performance Computing 15-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS, SUSE Linux Enterprise Module for Web and Scripting 15 SP2, SUSE Linux Enterprise Server 15-LTSS, SUSE Linux Enterprise Server 15 SP1-BCL, SUSE Linux Enterprise Server 15 SP1-LTSS, SUSE Linux Enterprise Server for SAP Applications 15, SUSE Linux Enterprise Server for SAP Applications 15 SP1, SUSE Manager Proxy 4.0, SUSE Manager Retail Branch Server 4.0, SUSE Manager Server 4.0 ·
- openSUSE-SU-2021:2353-1 · openSUSE Leap 15.3 ·
- openSUSE-SU-2021:2327-1 · openSUSE Leap 15.3 ·
- SUSE-SU-2021:2327-1 · SUSE Linux Enterprise Module for Web and Scripting 15 SP2, SUSE Linux Enterprise Module for Web and Scripting 15 SP3 ·
- SUSE-SU-2021:2326-1 · SUSE Linux Enterprise Module for Web and Scripting 12 ·
- SUSE-SU-2021:2323-1 · SUSE Linux Enterprise Module for Web and Scripting 12 ·
- SUSE-SU-2021:2319-1 · SUSE Linux Enterprise Module for Web and Scripting 12 ·
Affected products and versions
hosted-git-info
- Versions
- ≥ unspecified, < 3.0.8: Affected (custom)
Update to 3.0.8
node-hosted-git-info Debian 12
- Affected ranges
- ECOSYSTEM: < 3.0.8-1
Update to 3.0.8-1
node-hosted-git-info Debian 13
- Affected ranges
- ECOSYSTEM: < 3.0.8-1
Update to 3.0.8-1
node-hosted-git-info Debian 14
- Affected ranges
- ECOSYSTEM: < 3.0.8-1
Update to 3.0.8-1
hosted-git-info npm
- Affected ranges
- SEMVER: < 2.8.9
Update to 2.8.9
hosted-git-info npm
- Affected ranges
- SEMVER: ≥ 3.0.0, < 3.0.8
Update to 3.0.8
node-hosted-git-info Ubuntu Pro 18.04 LTS
- Versions
- 2.1.5-1
- 2.5.0-1
- Affected ranges
- ECOSYSTEM: < 2.5.0-1ubuntu0.1~esm1
Update to 2.5.0-1ubuntu0.1~esm1
node-hosted-git-info Ubuntu Pro 20.04 LTS
- Versions
- 2.7.1-1
- 2.8.5-1
- Affected ranges
- ECOSYSTEM: < 2.8.5-1ubuntu0.1~esm1
Update to 2.8.5-1ubuntu0.1~esm1
Original sources
- https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
- https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
- https://github.com/npm/hosted-git-info/commits/v2
- https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7
- https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://nvd.nist.gov/vuln/detail/CVE-2021-23362