GHSA-h6ch-v84p-w6p9 Regular Expression Denial of Service (ReDoS)

Not scored Published

An attacker can cause a denial of service in applications using the diff library by providing specially crafted input that triggers excessive regex processing.

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

What is GHSA-h6ch-v84p-w6p9?

GHSA-h6ch-v84p-w6p9 is a denial of service vulnerability in diff, published on 13 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability was found in diff before v3.5.0, the affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks.

Which versions are affected by GHSA-h6ch-v84p-w6p9?

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

PackageAffectedFixed in
diff npmAll versions3.5.0
diff npmAll versions3.5.0

How do I fix GHSA-h6ch-v84p-w6p9?

Upgrade diff to 3.5.0 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-h6ch-v84p-w6p9 being exploited?

There is no known exploitation of GHSA-h6ch-v84p-w6p9 in the wild and no public exploit code.

Sources

Is GHSA-h6ch-v84p-w6p9 in your software?

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

Check your SBOMs for free