CVE-2018-21270 Out-of-bounds Read in stringstream
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.
| Package | Affected | Fixed in |
|---|---|---|
stringstream npm | All versions | 0.0.6 |
stringstream npm | All versions | 0.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.
Other vulnerabilities in Nodejs Node.js
Sources
Also known as CLSA-2026-1772583200, CLSA-2026-1773274557, DEBIAN-CVE-2018-21270, GHSA-mf6x-7mm4-x2g7, UBUNTU-CVE-2018-21270.