Description
In all versions of Node.js prior to 6.14.4, 8.11.4 and 10.9.0 when used with UCS-2 encoding (recognized by Node.js under the names `'ucs2'`, `'ucs-2'`, `'utf16le'` and `'utf-16le'`), `Buffer#write()` can be abused to write outside of the bounds of a single `Buffer`. Writes that start from the second-to-last position of a buffer cause a miscalculation of the maximum length of the input bytes to be written.
Details
CVE ID
CVE-2018-12115
Published / updated
21 Aug 2018, 12:29 UTC · last modified 15 Oct 2026, 18:17 UTC
Severity
HIGH
CVSS score
7.5 · v3.0 ·
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H · Attack vector: NetworkAffected vendor
Affected products
Node.Js, Openshift Container Platform
Affected versions
Node.Js: < 6.14.4
Node.Js: ≥ 8.0.0, < 8.11.4
Node.Js: ≥ 10.0.0, < 10.9.0
Openshift Container Platform: 3.11
Fixed versions
node.js 6.14.4, node.js 8.11.4, node.js 10.9.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
7.78% probability of exploitation in the next 30 days · 95% percentile (02 Dec 2026)
Weakness
Remediation
Upgrade to a fixed release (node.js 6.14.4, node.js 8.11.4, node.js 10.9.0) per the vendor advisory.
Source (CNA)
cve-request@iojs.org
References (8)
| https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/ | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2018:2552 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:2553 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:2944 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:2949 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:3537 | Third Party Advisory |
| https://security.gentoo.org/glsa/202003-48 | |
| http://www.securityfocus.com/bid/105127 | Third Party AdvisoryVDB Entry |
AI plain-English explainer
A short explanation of who is affected, the impact and what to do, written only from this record's data.
AI isn't configured on this server (set AI_PROVIDER and an API key).
Learn about this vulnerability
What Is Remote Code Execution (RCE)?RCE lets an attacker run their own commands on a system they don't control. Learn the common causes, real examples and how to reduce the risk.Beginner · 4-minute readCVSS vs EPSS vs CISA KEV: Understanding the DifferencesThree signals, three different questions. CVSS measures how bad a flaw could be, EPSS estimates how likely exploitation is, and KEV confirms attackers are already using it.Intermediate · 4-minute readWhat Is a CVE? A Beginner's Guide to VulnerabilitiesCVE IDs are the common names for publicly known security flaws. Learn who assigns them, what a CVE record contains, and what a CVE does and doesn't tell you.Beginner · 4-minute readTrack this software
Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.
+ Nodejs Node.Js+ Redhat Openshift Container Platform