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

Medium 5.3 Published Updated

Attackers can cause denial of service in applications using hosted-git-info by triggering a regular expression with polynomial time complexity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23362?

CVE-2021-23362 is a medium-severity denial of service vulnerability in Siemens Sinec Infrastructure Network Services, published on 23 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1333

Which versions are affected by CVE-2021-23362?

4 open source packages ship an affected version, including hosted-git-info. It affects 2 products.

PackageAffectedFixed in
hosted-git-info npmAll versions2.8.9
hosted-git-info npmAll versions2.8.9
hosted-git-info npmFrom 3.0.03.0.8
hosted-git-info npmFrom 3.0.03.0.8

Products include Npmjs Hosted-Git-Info, Siemens Sinec Infrastructure Network Services.

How do I fix CVE-2021-23362?

Upgrade hosted-git-info to a fixed version for your release line: 2.8.9 or 3.0.8.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-23362 being exploited?

There is no known exploitation of CVE-2021-23362 in the wild and no public exploit code.

Sources

Also known as AZL-44058, CLSA-2026-1782954031, DEBIAN-CVE-2021-23362, GHSA-43f8-2h32-f4cj, OESA-2021-1168, UBUNTU-CVE-2021-23362 and 1 more.

Is CVE-2021-23362 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free