{"id":"CVE-2018-12115","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-12115","generatedAt":"2026-10-29T01:54:19.107Z","title":"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…","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.","published":"2018-08-21T12:29:00.000Z","lastModified":"2026-10-15T18:17:11.000Z","status":"Modified","sourceIdentifier":"cve-request@iojs.org","cvss":{"version":"3.0","score":7.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"cwe":["CWE-787"],"affected":["nodejs/node.js","redhat/openshift container platform"],"epss":{"score":0.07779,"percentile":0.94619,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (7.78%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"http://www.securityfocus.com/bid/105127","tags":["Third Party Advisory","VDB Entry"],"source":"cve-request@iojs.org"},{"url":"https://access.redhat.com/errata/RHSA-2018:2552","tags":["Third Party Advisory"],"source":"cve-request@iojs.org"},{"url":"https://access.redhat.com/errata/RHSA-2018:2553","tags":["Third Party Advisory"],"source":"cve-request@iojs.org"},{"url":"https://access.redhat.com/errata/RHSA-2018:2944","tags":["Third Party Advisory"],"source":"cve-request@iojs.org"},{"url":"https://access.redhat.com/errata/RHSA-2018:2949","tags":["Third Party Advisory"],"source":"cve-request@iojs.org"},{"url":"https://access.redhat.com/errata/RHSA-2018:3537","tags":["Third Party Advisory"],"source":"cve-request@iojs.org"},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","tags":["Vendor Advisory"],"source":"cve-request@iojs.org"},{"url":"https://security.gentoo.org/glsa/202003-48","source":"cve-request@iojs.org"},{"url":"http://www.securityfocus.com/bid/105127","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2018:2552","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2018:2553","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2018:2944","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2018:2949","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2018:3537","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202003-48","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-12115","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}