CVE-2022-37603 loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable

High 7.5 Published Updated

An attacker can cause a denial of service in applications using webpack loader-utils by triggering a regular expression denial of service via the url variable.

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

What is CVE-2022-37603?

CVE-2022-37603 is a high-severity denial of service vulnerability in n/a, published on 14 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Regular expression denial of service (ReDoS) flaw was found in Function interpolateName in interpolateName.js in webpack loader-utils 2.0.0 via the url variable in interpolateName.js.

Weakness: CWE-1333

Which versions are affected by CVE-2022-37603?

6 open source packages ship an affected version, including loader-utils. It affects 1 product.

PackageAffectedFixed in
loader-utils npmFrom 1.0.01.4.2
loader-utils npmFrom 1.0.01.4.2
loader-utils npmFrom 2.0.02.0.4
loader-utils npmFrom 2.0.02.0.4
loader-utils npmFrom 3.0.03.2.1
loader-utils npmFrom 3.0.03.2.1

Products include Webpack.js Loader-Utils.

How do I fix CVE-2022-37603?

Upgrade loader-utils to a fixed version for your release line: 1.4.2, 2.0.4 or 3.2.1.

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-2022-37603 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-37603, GHSA-3rfm-jhwj-7488, ROOT-APP-NPM-CVE-2022-37603, UBUNTU-CVE-2022-37603.

Is CVE-2022-37603 in your software?

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

Check your SBOMs for free