CVE-2018-21270 Out-of-bounds Read in stringstream

Medium 6.5 Published Updated

An out-of-bounds read in the stringstream module allows attackers to read uninitialized memory when processing numeric input streams.

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-21270?

CVE-2018-21270 is a medium-severity vulnerability in Nodejs Node.js, published on 3 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions less than 0.0.6 of the Node.js stringstream module are vulnerable to an out-of-bounds read because of allocation of uninitialized buffers when a number is passed in the input stream (when using Node.js 4.x).

Weakness: CWE-125

Which versions are affected by CVE-2018-21270?

2 open source packages ship an affected version, including stringstream. It affects 1 product.

PackageAffectedFixed in
stringstream npmAll versions0.0.6
stringstream npmAll versions0.0.6

Products include Nodejs Node.js.

How do I fix CVE-2018-21270?

Upgrade stringstream to 0.0.6 or later.

Is CVE-2018-21270 being exploited?

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

All Nodejs Node.js vulnerabilities

Sources

Also known as CLSA-2026-1772583200, CLSA-2026-1773274557, DEBIAN-CVE-2018-21270, GHSA-mf6x-7mm4-x2g7, UBUNTU-CVE-2018-21270.

Is CVE-2018-21270 in your software?

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

Check your SBOMs for free