Skip to content
OpenAdvisories
Unscored CVE-2018-12115 EUVD-2018-4093GHSA-q85m-543x-pwpc

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 Aug 21, 2018 · Updated Oct 15, 2026 · Assigned by nodejs

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.

Affected products

VendorProductAffectedFixed
The Node.js Project Node.js All versions of Node.js prior to 6.14.4, 8.11.4 and 10.9.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 10.15.0~dfsg-6 —
Debian 13 nodejs 10.15.0~dfsg-6 —
Debian 12 nodejs 10.15.0~dfsg-6 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS nodejs 8.10.0~dfsg-2ubuntu0.4+esm1 USN-4796-1
Ubuntu Pro 16.04 LTS nodejs 4.2.6~dfsg-1ubuntu4.2+esm1 USN-4796-1
Ubuntu Pro 14.04 LTS nodejs 0.10.25~dfsg2-2ubuntu1.2+esm1 USN-4796-1
ReleasePackageFixed inAdvisory
RHEL 3 rh-nodejs6-nodejs +2 6.11.3-6.el6 RHSA-2018:2944
RHEL 3 rh-nodejs8-nodejs +2 8.11.4-1.el7 RHSA-2018:2949
RHEL 3 rh-nodejs8-npm 5.6.0-8.11.4.1.el7 RHSA-2018:2949
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Openshift Application Runtimes 1 npm 1:5.6.0-1.8.11.4.2.el7 RHSA-2018:2553, RHSA-2018:2552
Red Hat Openshift Application Runtimes 1 rhoar-nodejs +1 1:8.11.4-2.el7 RHSA-2018:2553, RHSA-2018:2552
Red Hat OpenShift 3 atomic-openshift +11 3.11.43-1.git.0.647ac05.el7 RHSA-2018:3537
Red Hat OpenShift 3 jenkins-2-plugins 3.11.1539805268-1.el7 RHSA-2018:3537
Red Hat OpenShift 3 kibana 5.6.12-1.el7 RHSA-2018:3537
ReleasePackageFixed inAdvisory
SLES 15 nodejs8 8.11.4-3.8.2 SUSE-SU-2018:2812-1
SLES 12 nodejs4 4.9.1-15.14.1 SUSE-SU-2018:2647-1
SLES 12 nodejs6 6.14.4-11.18.1 SUSE-SU-2018:2796-1
SLES 11 SP4 MozillaFirefox 68.2.0-78.51.4 SUSE-SU-2019:14246-1
SLES 11 SP4 MozillaFirefox-branding-SLED 68-21.9.8 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-atk 2.26.1-2.8.4 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-cairo 1.15.10-2.13.4 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-gdk-pixbuf 2.36.11-2.8.4 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-glib2 2.54.3-2.14.7 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-gtk3 3.10.9-2.15.3 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-harfbuzz 1.7.5-2.7.4 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-libffi 3.2.1.git259-2.3.3 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-libffi-gcc5 5.3.1+r233831-14.1 SUSE-SU-2019:14246-1
SLES 11 SP4 firefox-pango 1.40.14-2.7.4 SUSE-SU-2019:14246-1
SLES 11 SP4 mozilla-nspr 4.21-29.6.1 SUSE-SU-2019:14246-1
SLES 11 SP4 mozilla-nss 3.45-38.9.3 SUSE-SU-2019:14246-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 8 nodejs6 6.14.4-11.18.1 SUSE-SU-2018:2796-1
SUSE OpenStack Cloud 7 nodejs6 6.14.4-11.18.1 SUSE-SU-2018:2796-1
SUSE Enterprise Storage 4 nodejs4 4.9.1-15.14.1 SUSE-SU-2018:2647-1
SUSE Enterprise Storage 4 nodejs6 6.14.4-11.18.1 SUSE-SU-2018:2796-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 8.11.4-r0 —
Alpine v3.23 nodejs 8.11.4-r0 —
Alpine v3.22 nodejs 8.11.4-r0 —
Alpine v3.21 nodejs 8.11.4-r0 —
Alpine v3.20 nodejs 8.11.4-r0 —
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 8.11.4-r0 —
Alpine v3.18 nodejs 8.11.4-r0 —
Alpine v3.17 nodejs 8.11.4-r0 —
Alpine v3.16 nodejs 8.11.4-r0 —
Alpine v3.15 nodejs 8.11.4-r0 —
Alpine v3.14 nodejs 8.11.4-r0 —
Alpine v3.13 nodejs 8.11.4-r0 —
Alpine v3.12 nodejs 8.11.4-r0 —
Alpine v3.11 nodejs 8.11.4-r0 —
Alpine v3.10 nodejs 8.11.4-r0 —
Alpine v3.9 nodejs 8.11.4-r0 —
Alpine v3.8 nodejs 8.11.4-r0 —

Advisories 10

References