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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nodejs | 10.15.0~dfsg-6 | — |
| Debian 13 | nodejs | 10.15.0~dfsg-6 | — |
| Debian 12 | nodejs | 10.15.0~dfsg-6 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- RHSA-2018:3537 Red Hat Security Advisory: OpenShift Container Platform 3.11 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2018:2944 Red Hat Security Advisory: rh-nodejs6-nodejs security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2018:2949 Red Hat Security Advisory: rh-nodejs8-nodejs security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2018:2552 Red Hat Security Advisory: Red Hat OpenShift Application Runtimes Node.js 8.11.4 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2018:2553 Red Hat Security Advisory: Red Hat OpenShift Application Runtimes Node.js 10.9.0 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- USN-4796-1 nodejs vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- SUSE-SU-2018:2647-1 Security update for nodejs4 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2796-1 Security update for nodejs6 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2812-1 Security update for nodejs8 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:14246-1 Security update for Mozilla Firefox SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 105127 vdb-entry
- RHSA-2018:2552 vendor-advisory
- RHSA-2018:2553 vendor-advisory
- RHSA-2018:2944 vendor-advisory
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/
- RHSA-2018:3537 vendor-advisory
- RHSA-2018:2949 vendor-advisory
- GLSA-202003-48 vendor-advisory