cve.bz

CVE-2021-23362

5.3 mediumExploit referenceEPSS 3.6%Fix available

Medium (5.3). EPSS 3.6% estimated probability of exploitation activity in the next 30 days. Fixed in hosted-git-info 2.8.9, 3.0.8.

On this page
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.

Severity

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
EPSS
3.6% (unchanged from 3.6% a week ago; 3.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23362 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23362?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23362?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23362 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
npmjs:hosted-git-infofrom 2.0.0 before 2.8.9
npmjs:hosted-git-infofrom 3.0.0 before 3.0.8
siemens:sinec_infrastructure_network_servicesbefore 1.0.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-43f8-2h32-f4cjnpmhosted-git-info<2.8.92.8.9
GHSA-43f8-2h32-f4cjnpmhosted-git-info>=3.0.0 <3.0.83.0.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-hosted-git-info3.0.8-1DEBIAN-CVE-2021-23362
UbuntuPro:18.04:LTSnode-hosted-git-info2.5.0-1ubuntu0.1~esm1UBUNTU-CVE-2021-23362 USN-5216-1
UbuntuPro:20.04:LTSnode-hosted-git-info2.8.5-1ubuntu0.1~esm1UBUNTU-CVE-2021-23362 USN-5216-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.22.3-2.module+el8.4.0+11732+c668cc9fRHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.17.3-2.module+el8.4.0+11738+3bd42762RHSA-2021:3074
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.3-1.module+el8.3.0+6519+9f98ed83RHSA-2021:3074
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.3-1.module+el8.4.0+11732+c668cc9fRHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2021:3074
Red Hatenterprise_linux:8::appstreamnpm1:6.14.13-1.12.22.3.2.module+el8.4.0+11732+c668cc9fRHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnpm1:6.14.13-1.14.17.3.2.module+el8.4.0+11738+3bd42762RHSA-2021:3074
Red Hatrhel_eus:8.1::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.22.5-1.module+el8.1.0+12238+63fe3aecRHSA-2021:3639
Red Hatrhel_eus:8.1::appstreamnodejs-nodemon0:1.18.3-1.module+el8.1.0+3369+37ae6a45RHSA-2021:3639
Red Hatrhel_eus:8.1::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2021:3639
Red Hatrhel_eus:8.1::appstreamnpm1:6.14.14-1.12.22.5.1.module+el8.1.0+12238+63fe3aecRHSA-2021:3639
10 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morenodejs-common2.0-3.2.1SUSE-SU-2021:2620-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morenodejs1010.24.1-1.36.1SUSE-SU-2021:2353-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morenodejs88.17.0-3.47.2SUSE-SU-2021:2620-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1010.24.1-1.39.1SUSE-SU-2021:2323-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.22.2-1.32.1SUSE-SU-2021:2326-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.17.2-6.12.1SUSE-SU-2021:2319-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2nodejs88.17.0-10.12.2SUSE-SU-2021:2618-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2, Linux Enterprise Module for Web and Scripting 15 SP3nodejs1212.22.2-4.16.1SUSE-SU-2021:2327-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2, Linux Enterprise Module for Web and Scripting 15 SP3nodejs1414.17.2-5.12.1SUSE-SU-2021:2354-1
openSUSELeap 15.2nodejs1010.24.1-lp152.2.15.1openSUSE-SU-2021:1061-1
openSUSELeap 15.2nodejs1212.22.2-lp152.3.15.1openSUSE-SU-2021:1059-1
openSUSELeap 15.2nodejs1414.17.2-lp152.11.1openSUSE-SU-2021:1060-1
openSUSELeap 15.2nodejs88.17.0-lp152.3.14.1openSUSE-SU-2021:1113-1
openSUSELeap 15.3nodejs1010.24.1-1.36.1openSUSE-SU-2021:2353-1
openSUSELeap 15.3nodejs1212.22.2-4.16.1openSUSE-SU-2021:2327-1
openSUSELeap 15.3nodejs1414.17.2-5.12.1openSUSE-SU-2021:2354-1
openSUSELeap 15.3nodejs88.17.0-10.12.2openSUSE-SU-2021:2618-1
AlmaLinux8nodejs-nodemon2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:3073 ALSA-2021:3074
AlmaLinux8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2021:3073
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2021:3073
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2021:3073
AlmaLinux8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2021:3074
AlmaLinux8nodejs-packaging23-3.module_el8.5.0+254+b4526b16ALSA-2021:3074
Rocky Linux8nodejs1:12.22.3-2.module+el8.4.0+638+5344c6f7RLSA-2021:3073
Rocky Linux8nodejs1:14.17.3-2.module+el8.4.0+639+18660d0dRLSA-2021:3074
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.3.0+100+234774f7RLSA-2021:3073 RLSA-2021:3074
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.4.0+638+5344c6f7RLSA-2021:3073 RLSA-2021:3074
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:3073 RLSA-2021:3074
Rocky Linux8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2021:3073
Rocky Linux8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2021:3074
Rocky Linux8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2021:3074
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2021:3074
Azure Linux3js-jqueryno fix listedAZL-44058

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

While some components do package a vulnerable version of hosted-git-info, access to them requires OpenShift OAuth credentials and hence have been marked with a Low impact. This applies to the following products:

- OpenShift Container Platform (OCP)

- OpenShift ServiceMesh (OSSM)

- Red Hat Advanced Cluster Management for Kubernetes (RHACM)

Specifically the following components:

- The OCP hive-container does ship the vulnerable component, however since OCP 4.6 the Metering product has been deprecated [1], set as wont-fix and may be fixed in a future release.

Red Hat Ceph Storage (RHCS) 4 packages a version of nodejs-hosted-git-info which is vulnerable to this flaw in the grafana-container shipped with it.

Red Hat Quay includes hosted-git-info as a dependency of karma-coverage which is only used at development time. The hosted-git-info library is not used at runtime so the impact is low for Red Hat Quay.

Red Hat Virtualization includes a vulnerable version of hosted-git-info, however it is only used during development. The hosted-git-info library is not used at runtime thus impact is rated Low and marked as "wontfix" at this time. Future updates may address this flaw.

[1] - https://access.redhat.com/solutions/5707561

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:12-8040020210708131418.522a0ee4Fixed 2021-08-10RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs:14-8040020210708154809.522a0ee4Fixed 2021-08-10RHSA-2021:3074
Red Hat Enterprise Linux 8.1 Extended Update Supportnodejs:12-8010020210817113128.c27ad7f8Fixed 2021-09-22RHSA-2021:3639
Red Hat Enterprise Linux 8.2 Extended Update Supportnodejs:12-8020020210817125332.4cda2c84Fixed 2021-09-22RHSA-2021:3638
Red Hat OpenShift Container Platform 4.8openshift4/ose-console:v4.8.0-202107010336.p0.git.188a490.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-0:12.22.2-1.el7Fixed 2021-07-28RHSA-2021:2931
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-nodemon-0:2.0.3-2.el7Fixed 2021-07-28RHSA-2021:2931
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.17.2-1.el7Fixed 2021-07-28RHSA-2021:2932
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-nodemon-0:2.0.3-2.el7Fixed 2021-07-28RHSA-2021:2932
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs12-nodejs-0:12.22.2-1.el7Fixed 2021-07-28RHSA-2021:2931
Distributed Tracing Jaeger 1distributed-tracing/jaeger-all-in-one-rhel8Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-query-rhel8Not affected
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-prometheusAffected
Red Hat Advanced Cluster Management for Kubernetes 2application-uiFix deferred
Red Hat Advanced Cluster Management for Kubernetes 2console-headerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2console-uiNot affected
Red Hat Advanced Cluster Management for Kubernetes 2grc-uiAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-ui-rhel8Affected
Red Hat Ceph Storage 2grafanaOut of support scope
22 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23362.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON