CVE-2017-18214 Regular Expression Denial of Service in moment

High 7.5 Published Updated

Attackers can cause denial of service in applications using the moment library by submitting crafted date strings that trigger excessive CPU usage.

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

What is CVE-2017-18214?

CVE-2017-18214 is a high-severity denial of service vulnerability in Tenable Nessus, published on 4 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The moment module before 2.19.3 for Node.js is prone to a regular expression denial of service via a crafted date string, a different vulnerability than CVE-2016-4055.

Weakness: CWE-400

Which versions are affected by CVE-2017-18214?

2 open source packages ship an affected version, including moment. It affects 2 products.

PackageAffectedFixed in
moment npmAll versions2.19.3
moment npmAll versions2.19.3

Products include Momentjs Moment, Tenable Nessus.

How do I fix CVE-2017-18214?

Upgrade moment to 2.19.3 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-2017-18214 being exploited?

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

All Tenable Nessus vulnerabilities

Sources

Also known as AZL-32178, AZL-41019, DEBIAN-CVE-2017-18214, GHSA-446m-mv8f-q348, ROOT-APP-NPM-CVE-2017-18214, UBUNTU-CVE-2017-18214.

Is CVE-2017-18214 in your software?

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

Check your SBOMs for free