Skip to content
Fencer Intel
high 7.5

CVE-2018-12115 json

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'`…

published 8y ago modified 25d ago also EUVD-2018-4093

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
7.8%
EPSS 7.8% chance of exploitation in 30 days, percentile 94%
public exploits
0
none known

Summary

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.

Patch / fix

  • nodejs node.js 6.14.4, 8.11.4, 10.9.0
  • nodejs Debian 14, Debian 13, Debian 12 10.15.0~dfsg-6

debian advisories DEBIAN-CVE-2018-12115

  • nodejs Ubuntu Pro 18.04 LTS 8.10.0~dfsg-2ubuntu0.4+esm1

ubuntu advisories UBUNTU-CVE-2018-12115

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kibana openshift 3.11 5.6.12-1.el7
  • atomic-openshift openshift 3.11 3.11.43-1.git.0.647ac05.el7
  • jenkins-2-plugins openshift 3.11 3.11.1539805268-1.el7
  • atomic-openshift-pod openshift 3.11 3.11.43-1.git.0.647ac05.el7
  • atomic-openshift-node openshift 3.11 3.11.43-1.git.0.647ac05.el7
  • atomic-openshift-tests openshift 3.11 3.11.43-1.git.0.647ac05.el7
  • atomic-openshift-master openshift 3.11 3.11.43-1.git.0.647ac05.el7
  • atomic-openshift-sdn-ovs openshift 3.11 3.11.43-1.git.0.647ac05.el7

red hat advisories RHSA-2018:3537RHSA-2018:2949RHSA-2018:2553RHSA-2018:2944RHSA-2018:2552

  • nodejs8 SLE Module for Web and Scripting 15 8.11.4-3.8.2
  • nodejs6 SLE Module for Web and Scripting 12, OpenStack Cloud Crowbar 8, OpenStack Cloud 7 +1 more 6.14.4-11.18.1
  • nodejs4 SLE Module for Web and Scripting 12, Enterprise Storage 4 4.9.1-15.14.1
  • firefox-atk SLES 11 SP4-LTSS 2.26.1-2.8.4
  • mozilla-nss SLES 11 SP4-LTSS 3.45-38.9.3
  • firefox-gtk3 SLES 11 SP4-LTSS 3.10.9-2.15.3
  • mozilla-nspr SLES 11 SP4-LTSS 4.21-29.6.1
  • firefox-cairo SLES 11 SP4-LTSS 1.15.10-2.13.4

suse advisories SUSE-SU-2019:14246-1SUSE-SU-2018:2812-1SUSE-SU-2018:2796-1SUSE-SU-2018:2647-1

  • nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +14 more 8.11.4-r0

alpine advisories ALPINE-CVE-2018-12115

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2018-12115 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-12115 updated cvss 8.1

nodejs: Out of bounds (OOB) write via UCS-2 encoding

  • Red Hat Mobile Application Platform 4 nodejs Red Hat Software Collections rh-nodejs4-nodejs
    affected: workaround, no fix planned “Will not fix”
  • Red Hat OpenShift Application Runtimes Node.js 8 npm 5.6.0-1.8.11.4.2.el7, rhoar-nodejs 8.11.4-2.el7
    fixed: vendor fix RHSA-2018:2552
  • Red Hat OpenShift Application Runtimes Node.js 10 npm 6.2.0-1.10.9.0.1.el7, rhoar-nodejs 10.9.0-1.el7
    fixed: vendor fix RHSA-2018:2553
  • Red Hat OpenShift Container Platform 3.11 jenkins-2-plugins 3.11.1539805268-1.el7
    fixed: vendor fix RHSA-2018:3537
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-nodejs6-nodejs 6.11.3-6.el6 Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs6-nodejs 6.11.3-7.el7, rh-nodejs8-nodejs 8.11.4-1.el7, rh-nodejs8-npm 5.6.0-8.11.4.1.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-nodejs6-nodejs 6.11.3-6.el6 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-nodejs6-nodejs 6.11.3-7.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-nodejs6-nodejs 6.11.3-7.el7, rh-nodejs8-nodejs 8.11.4-1.el7, rh-nodejs8-npm 5.6.0-8.11.4.1.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-nodejs6-nodejs 6.11.3-7.el7, rh-nodejs8-nodejs 8.11.4-1.el7, rh-nodejs8-npm 5.6.0-8.11.4.1.el7
    +2 more products
    Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-nodejs6-nodejs 6.11.3-6.el6 Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs6-nodejs 6.11.3-7.el7, rh-nodejs8-nodejs 8.11.4-1.el7, rh-nodejs8-npm 5.6.0-8.11.4.1.el7
    fixed: vendor fix RHSA-2018:2944
  • Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat OpenShift Container Platform 3.2 logging-kibana, logging-auth-proxy Red Hat OpenShift Container Platform 3.3 logging-kibana, logging-auth-proxy Red Hat OpenShift Container Platform 3.4 logging-kibana, logging-auth-proxy Red Hat OpenShift Container Platform 3.5 logging-kibana, logging-auth-proxy Red Hat OpenShift Container Platform 3.6 logging-kibana, logging-auth-proxy
    +7 more products
    Red Hat OpenShift Container Platform 3.7 logging-kibana, logging-auth-proxy Red Hat OpenShift Container Platform 3.9 logging-kibana, logging-auth-proxy Red Hat OpenShift Container Platform 3.10 logging-kibana, logging-auth-proxy Red Hat OpenShift Container Platform 3.11 logging-kibana, logging-auth-proxy, kibana 5.6.12-1.el7, python-nose-xcover 1.0.10-1.el7, python-elasticsearch 5.5.5-1.el7, cri-o 1.11.8-2.rhaos3.11.git71cc465.el7, +43 more Red Hat OpenShift Enterprise 3.0 logging-kibana, logging-auth-proxy Red Hat OpenShift Enterprise 3.1 logging-kibana, logging-auth-proxy Red Hat Software Collections rh-nodejs10-npm, rh-nodejs10-nodejs
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
25d ago

Exploit prediction

7.78% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected products

  • The Node.js Project Node.js

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.