cve.bz

CVE-2018-12115 Out-of-bounds Write

7.5 highEPSS 7.8%

High (7.5). EPSS 7.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
7.8% (unchanged from 7.8% a week ago; 8.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-12115 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-12115?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-12115?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-12115 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2018-12115

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-12115](https://cve.bz/cve/badge/CVE-2018-12115.svg)](https://cve.bz/cve/CVE-2018-12115)

HTML:

<a href="https://cve.bz/cve/CVE-2018-12115"><img src="https://cve.bz/cve/badge/CVE-2018-12115.svg" alt="CVE-2018-12115"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nodejs:node.jsbefore 6.14.4
nodejs:node.jsfrom 8.0.0 before 8.11.4
nodejs:node.jsfrom 10.0.0 before 10.9.0
redhat:openshift_container_platform3.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14nodejs10.15.0~dfsg-6DEBIAN-CVE-2018-12115
UbuntuPro:14.04:LTS, Pro:16.04:LTSnodejsno fix listedUBUNTU-CVE-2018-12115 USN-4796-1
UbuntuPro:18.04:LTSnodejs8.10.0~dfsg-2ubuntu0.4+esm1UBUNTU-CVE-2018-12115 USN-4796-1
Red Hatopenshift:3.11::el7atomic-openshift, atomic-openshift-pod, atomic-openshift-node and 9 more0:3.11.43-1.git.0.647ac05.el7RHSA-2018:3537
Red Hatopenshift:3.11::el7jenkins-2-plugins0:3.11.1539805268-1.el7RHSA-2018:3537
Red Hatopenshift:3.11::el7kibana0:5.6.12-1.el7RHSA-2018:3537
Red Hatopenshift_application_runtimes:1.0::el7npm1:5.6.0-1.8.11.4.2.el7RHSA-2018:2552
Red Hatopenshift_application_runtimes:1.0::el7npm1:6.2.0-1.10.9.0.1.el7RHSA-2018:2553
Red Hatopenshift_application_runtimes:1.0::el7rhoar-nodejs, rhoar-nodejs-docs, rhoar-nodejs-debuginfo1:10.9.0-1.el7RHSA-2018:2553
Red Hatopenshift_application_runtimes:1.0::el7rhoar-nodejs, rhoar-nodejs-docs, rhoar-nodejs-debuginfo1:8.11.4-2.el7RHSA-2018:2552
Red Hatrhel_software_collections:3::el6rh-nodejs6-nodejs, rh-nodejs6-nodejs-docs, rh-nodejs6-nodejs-devel and 1 more0:6.11.3-6.el6RHSA-2018:2944
Red Hatrhel_software_collections:3::el7rh-nodejs6-nodejs, rh-nodejs6-nodejs-docs, rh-nodejs6-nodejs-devel and 1 more0:6.11.3-7.el7RHSA-2018:2944
Red Hatrhel_software_collections:3::el7rh-nodejs8-nodejs, rh-nodejs8-nodejs-docs, rh-nodejs8-nodejs-devel and 1 more0:8.11.4-1.el7RHSA-2018:2949
Red Hatrhel_software_collections:3::el7rh-nodejs8-npm0:5.6.0-8.11.4.1.el7RHSA-2018:2949
SUSEEnterprise Storage 4, Linux Enterprise Module for Web and Scripting 12nodejs44.9.1-15.14.1SUSE-SU-2018:2647-1
SUSEEnterprise Storage 4, Linux Enterprise Module for Web and Scripting 12, OpenStack Cloud 7 and 1 morenodejs66.14.4-11.18.1SUSE-SU-2018:2796-1
SUSELinux Enterprise Module for Web and Scripting 15nodejs88.11.4-3.8.2SUSE-SU-2018:2812-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox68.2.0-78.51.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox-branding-SLED68-21.9.8SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-atk2.26.1-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-cairo1.15.10-2.13.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gdk-pixbuf2.36.11-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-glib22.54.3-2.14.7SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gtk33.10.9-2.15.3SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-harfbuzz1.7.5-2.7.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-libffi3.2.1.git259-2.3.3SUSE-SU-2019:14246-1
4 more for SUSE in the JSON and on SUSE's page.
Alpinev3.8, v3.9, v3.10 and 14 morenodejs8.11.4-r0ALPINE-CVE-2018-12115

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Openshift Container Platform 3.x versions are potentially vulnerable via the jenkins-slave-nodejs and jenkins-agent-nodejs containers. However a build would have to occur with a malicious jenkins pipeline, or nodejs source code supplied by an attacker, reducing the impact of this flaw to moderate. Both container images used nodejs delivered from Red Hat Software Collections.

Red Hat's mitigation

On Openshift Container Platform 3.x you can override the container image used on the Jenkins Slave by specifying the JENKINS_SLAVE_IMAGE environment variable in your jenkins deployment configuration. Ref:

https://github.com/openshift/jenkins/blob/8e1ab16fb5f44d6570018c5dfa3407692fdba6e5/2/contrib/jenkins/kube-slave-common.sh#L27-L33

ProductPackageStateAdvisory
Red Hat OpenShift Application Runtimes Node.js 10rhoar-nodejs-1:10.9.0-1.el7Fixed 2018-08-22RHSA-2018:2553
Red Hat OpenShift Application Runtimes Node.js 8rhoar-nodejs-1:8.11.4-2.el7Fixed 2018-08-22RHSA-2018:2552
Red Hat OpenShift Container Platform 3.11jenkins-2-plugins-0:3.11.1539805268-1.el7Fixed 2018-11-20RHSA-2018:3537
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-nodejs6-nodejs-0:6.11.3-6.el6Fixed 2018-10-18RHSA-2018:2944
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-nodejs6-nodejs-0:6.11.3-6.el6Fixed 2018-10-18RHSA-2018:2944
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs6-nodejs-0:6.11.3-7.el7Fixed 2018-10-18RHSA-2018:2944
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs8-nodejs-0:8.11.4-1.el7Fixed 2018-10-18RHSA-2018:2949
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-nodejs6-nodejs-0:6.11.3-7.el7Fixed 2018-10-18RHSA-2018:2944
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-nodejs6-nodejs-0:6.11.3-7.el7Fixed 2018-10-18RHSA-2018:2944
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-nodejs8-nodejs-0:8.11.4-1.el7Fixed 2018-10-18RHSA-2018:2949
Red Hat Enterprise Linux 8nodejs:10/nodejsNot affected
Red Hat Mobile Application Platform 4nodejsWill not fix
Red Hat OpenShift Container Platform 3.10logging-auth-proxyNot affected
Red Hat OpenShift Container Platform 3.10logging-kibanaNot affected
Red Hat OpenShift Container Platform 3.11logging-auth-proxyNot affected
Red Hat OpenShift Container Platform 3.11logging-kibanaNot affected
Red Hat OpenShift Container Platform 3.2logging-auth-proxyNot affected
Red Hat OpenShift Container Platform 3.2logging-kibanaNot affected
Red Hat OpenShift Container Platform 3.3logging-auth-proxyNot affected
Red Hat OpenShift Container Platform 3.3logging-kibanaNot affected
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-12115.

References

Check your stackJSON