CVE-2018-12121 Denial of service in Node.js

High 7.5 Published Updated

Attackers can cause Node.js HTTP servers to crash via heap allocation failure by sending large, timed HTTP headers.

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

What is CVE-2018-12121?

CVE-2018-12121 is a high-severity denial of service vulnerability in Nodejs Node.js, published on 28 Nov 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Node.js: All versions prior to Node.js 6.15.0, 8.14.0, 10.14.0 and 11.3.0: Denial of Service with large HTTP headers: By using a combination of many requests with maximum sized headers (almost 80 KB per connection), and carefully timed completion of the headers, it is possible to cause the HTTP server to abort from heap allocation failure. Attack potential is mitigated by the use of a load balancer or other proxy layer.

Weakness: CWE-400

Which versions are affected by CVE-2018-12121?

It affects 8 products.

Linux distribution packages (3)
http-parser Red Hat:enterprise_linux:8::appstreamAll versions0:2.8.0-5.el8
http-parser-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:2.8.0-5.el8
http-parser-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:2.8.0-5.el8

Products include Nodejs Node.js, Redhat Enterprise Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Eus, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus and 2 more.

How do I fix CVE-2018-12121?

Upgrade to a fixed version.

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-2018-12121 being exploited?

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

All Nodejs Node.js vulnerabilities

Sources

Also known as ALPINE-CVE-2018-12121, CLEANSTART-2026-RU92085, CLEANSTART-2026-ZB96802, DEBIAN-CVE-2018-12121, GHSA-2p2c-vwq7-7vg6, RHSA-2019:3497 and 1 more.

Is CVE-2018-12121 in your software?

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

Check your SBOMs for free