CVE-2019-1010266 Regular Expression Denial of Service (ReDoS) in lodash

Medium 6.5 Published Updated

An attacker can cause a denial of service by providing long strings that trigger excessive resource consumption in the Date handler.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-1010266?

CVE-2019-1010266 is a medium-severity denial of service vulnerability in lodash, published on 17 Jul 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

lodash prior to 4.17.11 is affected by: CWE-400: Uncontrolled Resource Consumption. The impact is: Denial of service. The component is: Date handler. The attack vector is: Attacker provides very long strings, which the library attempts to match using a regular expression. The fixed version is: 4.17.11.

Weakness: CWE-770, CWE-400

Which versions are affected by CVE-2019-1010266?

8 open source packages ship an affected version, including lodash-rails, lodash and lodash-amd. It affects 1 product.

PackageAffectedFixed in
lodash-rails RubyGemsFrom 4.7.04.17.11
lodash-rails RubyGemsFrom 4.7.04.17.11
lodash npmFrom 4.7.04.17.11
lodash npmFrom 4.7.04.17.11
lodash-amd npmFrom 4.7.04.17.11
lodash-amd npmFrom 4.7.04.17.11
2 more packages
lodash-es npmFrom 4.7.04.17.11
lodash-es npmFrom 4.7.04.17.11

Products include Lodash Lodash.

How do I fix CVE-2019-1010266?

Upgrade lodash-rails to 4.17.11 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 CVE-2019-1010266 being exploited?

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

Sources

Also known as AZL-45159, DEBIAN-CVE-2019-1010266, GHSA-x5rq-j2xg-h7qm, SNYK-JS-LODASH-73639, UBUNTU-CVE-2019-1010266.

Is CVE-2019-1010266 in your software?

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

Check your SBOMs for free