CVEfocus › CVE database › CVE-2021-23362

CVE-2021-23362Regular Expression Denial of Service (ReDoS)

CVSS 5.3 MediumEPSS 3.6% (higher than 90% of CVEs)Published 2021-03-23Updated 2024-09-17Assigner: snyk

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.

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
6Fix pending
8Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04node-hosted-git-infoNot affected
vulnerable_code_not_present
Ubuntu 22.04node-hosted-git-infoNot affected
vulnerable_code_not_present
Ubuntu 20.04node-hosted-git-infoFix pending2.8.5-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-23362
Ubuntu 18.04node-hosted-git-infoFix pending2.5.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-23362
Debian 14node-hosted-git-infoFixed3.0.8-1DEBIAN-CVE-2021-23362
Debian 13node-hosted-git-infoFixed3.0.8-1DEBIAN-CVE-2021-23362
Debian 12node-hosted-git-infoFixed3.0.8-1DEBIAN-CVE-2021-23362
Red Hat Enterprise Linux 9grafana-pcpFix pending
Affected
Red Hat Enterprise Linux 9js-d3-flame-graphFix pending
Affected
Red Hat Enterprise Linux 9pcsFix pending
Affected
Red Hat Enterprise Linux 9pcs-snmpFix pending
Affected
Red Hat Enterprise Linux 8grafana-pcpWill not fix
Will not fix
Red Hat Enterprise Linux 8js-d3-flame-graphWill not fix
Will not fix
Red Hat Enterprise Linux 8nodejsFixed
Will not fix
1:12.22.3-2.module+el8.4.0+11732+c668cc9fRHSA-2021:3074
Red Hat Enterprise Linux 8nodejs-develFixed
Will not fix
1:14.17.3-2.module+el8.4.0+11738+3bd42762RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs-docsFixed
Will not fix
1:12.22.3-2.module+el8.4.0+11732+c668cc9fRHSA-2021:3074
Red Hat Enterprise Linux 8nodejs-full-i18nFixed
Will not fix
1:12.22.3-2.module+el8.4.0+11732+c668cc9fRHSA-2021:3074
Red Hat Enterprise Linux 8nodejs-libsWill not fix
Will not fix
Red Hat Enterprise Linux 8nodejs-nodemonFixed
Will not fix
0:2.0.3-1.module+el8.3.0+6519+9f98ed83RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs-packagingFixed
Will not fix
0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2021:3074
Red Hat Enterprise Linux 8nodejs-packaging-bundlerWill not fix
Will not fix
Red Hat Enterprise Linux 8npmFixed
Will not fix
1:6.14.13-1.14.17.3.2.module+el8.4.0+11738+3bd42762RHSA-2021:3073
Red Hat Enterprise Linux 8pcsWill not fix
Will not fix
Red Hat Enterprise Linux 8pcs-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 8v8-12.4-develWill not fix
Will not fix
Red Hat Enterprise Linux 8v8-13.6-develWill not fix
Will not fix
AlmaLinux 8nodejs-nodemonFixed2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:3073
AlmaLinux 8nodejs-packagingFixed23-3.module_el8.4.0+2522+3bd42762ALSA-2021:3074
Rocky Linux 8nodejsFixed1:12.22.3-2.module+el8.4.0+638+5344c6f7RLSA-2021:3074
Rocky Linux 8nodejs-nodemonFixed0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:3073
Rocky Linux 8nodejs-packagingFixed0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2021:3073
npm libraryhosted-git-infoFixed2.8.9GHSA-43f8-2h32-f4cj

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.