CVE-2018-21270

Exp

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).

Published: 2020-12-03 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2018-21270 is rated High Exploit Risk (74.9/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 3.64%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +3.11% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2018-21270

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2018-21270

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.53% 3.64% +3.11%
2 2026-03-08 0.36% 0.53% +0.17%
3 2025-04-29 0.36%

Full EPSS history (9 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2018-21270

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.2 4.2 [email protected]
5.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 4.9 [email protected]

Weakness enumeration for CVE-2018-21270

GitHub Security Advisory for CVE-2018-21270

GHSA-mf6x-7mm4-x2g7 · Severity: medium · Ecosystem: npm — Out-of-bounds Read in stringstream

OS Trackers for CVE-2018-21270

vendor priority summary link
debian not yet assigned CVE-2018-21270 not yet assigned priority: Debian including 1 source packages (node-stringstream), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2018-21270
redhat medium https://access.redhat.com/security/cve/CVE-2018-21270
ubuntu medium CVE-2018-21270 medium priority: Ubuntu including 1 source packages (node-stringstream), 16 status rows across 16 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 12, DNE 2, needed 1, needs-triage 1. https://ubuntu.com/security/CVE-2018-21270

Affected software / configurations for CVE-2018-21270

Vendor Product Version Raw CPE
nodejs node.js < 0.0.6 cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*

References for CVE-2018-21270

URL Tags
https://github.com/mhart/StringStream/issues/7 Issue Tracking Third Party Advisory
https://hackerone.com/reports/321670 Exploit Third Party Advisory
https://www.npmjs.com/advisories/664 Exploit Third Party Advisory
cvelogic Threat Intelligence