Skip to content
OpenAdvisories
Medium · 5.3 CVE-2021-23362 EUVD-2021-0928GHSA-43f8-2h32-f4cj

Regular Expression Denial of Service (ReDoS)

Published Mar 23, 2021 · Updated Sep 17, 2024 · 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.

Affected products

VendorProductAffectedFixed
— hosted-git-info unspecified – < 3.0.8 3.0.8

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-hosted-git-info 3.0.8-1 —
Debian 13 node-hosted-git-info 3.0.8-1 —
Debian 12 node-hosted-git-info 3.0.8-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS node-hosted-git-info 2.8.5-1ubuntu0.1~esm1 USN-5216-1
Ubuntu Pro 18.04 LTS node-hosted-git-info 2.5.0-1ubuntu0.1~esm1 USN-5216-1
ReleasePackageFixed inAdvisory
RHEL 8 nodejs +3 1:12.22.3-2.module+el8.4.0+11732+c668cc9f RHSA-2021:3074, RHSA-2021:3073
RHEL 8 nodejs-nodemon 2.0.3-1.module+el8.3.0+6519+9f98ed83 RHSA-2021:3074, RHSA-2021:3073
RHEL 8 nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:3074, RHSA-2021:3073
RHEL 8 npm 1:6.14.13-1.12.22.3.2.module+el8.4.0+11732+c668cc9f RHSA-2021:3074, RHSA-2021:3073
RHEL 3 rh-nodejs12-nodejs +2 12.22.2-1.el7 RHSA-2021:2931
RHEL 3 rh-nodejs12-nodejs-nodemon +1 2.0.3-2.el7 RHSA-2021:2932, RHSA-2021:2931
RHEL 3 rh-nodejs12-npm 6.14.13-12.22.2.1.el7 RHSA-2021:2931
RHEL 3 rh-nodejs14-nodejs +2 14.17.2-1.el7 RHSA-2021:2932
RHEL 3 rh-nodejs14-npm 6.14.13-14.17.2.1.el7 RHSA-2021:2932
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS nodejs +3 1:12.22.5-1.module+el8.2.0+12241+a3db445b RHSA-2021:3638
RHEL 8.2 EUS nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:3638
RHEL 8.2 EUS nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:3638
RHEL 8.2 EUS npm 1:6.14.14-1.12.22.5.1.module+el8.2.0+12241+a3db445b RHSA-2021:3638
RHEL 8.1 EUS nodejs +3 1:12.22.5-1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639
RHEL 8.1 EUS nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:3639
RHEL 8.1 EUS nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:3639
RHEL 8.1 EUS npm 1:6.14.14-1.12.22.5.1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 nodejs-nodemon 2.0.3-1.module_el8.4.0+2521+c668cc9f ALSA-2021:3074, ALSA-2021:3073
AlmaLinux 8 nodejs-packaging 17-3.module_el8.3.0+2023+d2377ea3 ALSA-2021:3074, ALSA-2021:3073

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 nodejs 1:12.22.3-2.module+el8.4.0+638+5344c6f7 RLSA-2021:3074, RLSA-2021:3073
Rocky Linux 8 nodejs-nodemon 2.0.3-1.module+el8.3.0+100+234774f7 RLSA-2021:3074, RLSA-2021:3073
Rocky Linux 8 nodejs-packaging 17-3.module+el8.3.0+101+f84c7154 RLSA-2021:3074, RLSA-2021:3073
ReleasePackageFixed inAdvisory
SLES 15 SP3 nodejs12 12.22.2-4.16.1 SUSE-SU-2021:2327-1
SLES 15 SP3 nodejs14 14.17.2-5.12.1 SUSE-SU-2021:2354-1
SLES 15 SP2 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SLES 15 SP2 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES 15 SP2 nodejs12 12.22.2-4.16.1 SUSE-SU-2021:2327-1
SLES 15 SP2 nodejs14 14.17.2-5.12.1 SUSE-SU-2021:2354-1
SLES 15 SP2 nodejs8 8.17.0-10.12.2 SUSE-SU-2021:2618-1
SLES 15 SP1 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SLES 15 SP1 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES 15 SP1 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SLES 15 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SLES 15 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES 15 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SLES 12 nodejs10 10.24.1-1.39.1 SUSE-SU-2021:2323-1
SLES 12 nodejs12 12.22.2-1.32.1 SUSE-SU-2021:2326-1
SLES 12 nodejs14 14.17.2-6.12.1 SUSE-SU-2021:2319-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SLES for SAP 15 SP1 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES for SAP 15 SP1 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SLES for SAP 15 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SLES for SAP 15 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES for SAP 15 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SLE HPC 15 SP1 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SLE HPC 15 SP1 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLE HPC 15 SP1 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SLE HPC 15 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SLE HPC 15 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLE HPC 15 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SUSE Manager Server 4.0 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SUSE Manager Server 4.0 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Manager Server 4.0 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SUSE Manager Retail Branch Server 4.0 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SUSE Manager Retail Branch Server 4.0 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Manager Retail Branch Server 4.0 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SUSE Manager Proxy 4.0 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SUSE Manager Proxy 4.0 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Manager Proxy 4.0 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
SUSE Enterprise Storage 6 nodejs-common 2.0-3.2.1 SUSE-SU-2021:2620-1
SUSE Enterprise Storage 6 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Enterprise Storage 6 nodejs8 8.17.0-3.47.2 SUSE-SU-2021:2620-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 nodejs10 10.24.1-1.36.1 openSUSE-SU-2021:2353-1
openSUSE Leap 15.3 nodejs12 12.22.2-4.16.1 openSUSE-SU-2021:2327-1
openSUSE Leap 15.3 nodejs14 14.17.2-5.12.1 openSUSE-SU-2021:2354-1
openSUSE Leap 15.3 nodejs8 8.17.0-10.12.2 openSUSE-SU-2021:2618-1
openSUSE Leap 15.2 nodejs10 10.24.1-lp152.2.15.1 openSUSE-SU-2021:1061-1
openSUSE Leap 15.2 nodejs12 12.22.2-lp152.3.15.1 openSUSE-SU-2021:1059-1
openSUSE Leap 15.2 nodejs14 14.17.2-lp152.11.1 openSUSE-SU-2021:1060-1
openSUSE Leap 15.2 nodejs8 8.17.0-lp152.3.14.1 openSUSE-SU-2021:1113-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 nodejs +3 1:12.22.3-2.module+el8.4.0+20281+eb64e322 ELSA-2021-3074, ELSA-2021-3073
Oracle Linux 8 nodejs-nodemon 2.0.3-1.module+el8.3.0+7818+6cd30d85 ELSA-2021-3074, ELSA-2021-3073
Oracle Linux 8 nodejs-packaging 17-3.module+el8.1.0+5393+aaf413e3 ELSA-2021-3074, ELSA-2021-3073
Oracle Linux 8 npm 1:6.14.13-1.12.22.3.2.module+el8.4.0+20281+eb64e322 ELSA-2021-3074, ELSA-2021-3073

Affected packages

EcosystemPackageAffectedFixedRecord
npm hosted-git-info < 2.8.9 2.8.9 GHSA-43f8-2h32-f4cj
npm hosted-git-info >= 3.0.0, < 3.0.8 3.0.8 GHSA-43f8-2h32-f4cj

Advisories 36

References