GHSA-6394-6h9h-cfjg Regular Expression Denial of Service

Not scored Published

An attacker can cause a denial of service in applications using the nwmatcher library by triggering a regular expression vulnerability.

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

What is GHSA-6394-6h9h-cfjg?

GHSA-6394-6h9h-cfjg is a denial of service vulnerability in nwmatcher, published on 7 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Regular Expression vulnerability was found in nwmatcher before 1.4.4. The fix replacing multiple repeated instances of the "\s*" pattern.

Which versions are affected by GHSA-6394-6h9h-cfjg?

2 open source packages ship an affected version, including nwmatcher.

PackageAffectedFixed in
nwmatcher npmAll versions1.4.4
nwmatcher npmAll versions1.4.4

How do I fix GHSA-6394-6h9h-cfjg?

Upgrade nwmatcher to 1.4.4 or later.

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

Is GHSA-6394-6h9h-cfjg being exploited?

There is no known exploitation of GHSA-6394-6h9h-cfjg in the wild and no public exploit code.

Sources

Is GHSA-6394-6h9h-cfjg in your software?

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

Check your SBOMs for free