CVE-2018-12115
published 2018-08-21CVE-2018-12115: 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'`…
PriorityP344high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EPSS
8.03%
94.2th percentile
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
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | nodejs | < nodejs 10.15.0~dfsg-6 (bookworm) | nodejs 10.15.0~dfsg-6 (bookworm) |
| nodejs | node.js | < 6.14.4 | 6.14.4 |
| nodejs | node.js | >= 10.0.0 < 10.9.0 | 10.9.0 |
| nodejs | node.js | >= 8.0.0 < 8.11.4 | 8.11.4 |
| nodejs | nodejs | >= 0 < 10.15.0~dfsg-6 | 10.15.0~dfsg-6 |
| nodejs | nodejs | >= 0 < 10.15.0~dfsg-6 | 10.15.0~dfsg-6 |
| nodejs | nodejs | >= 0 < 10.15.0~dfsg-6 | 10.15.0~dfsg-6 |
| nodejs | nodejs | >= 0 < 10.15.0~dfsg-6 | 10.15.0~dfsg-6 |
| nodejs | nodejs | >= 0 < 0.10.25~dfsg2-2ubuntu1.2+esm1 | 0.10.25~dfsg2-2ubuntu1.2+esm1 |
| nodejs | nodejs | >= 0 < 4.2.6~dfsg-1ubuntu4.2+esm1 | 4.2.6~dfsg-1ubuntu4.2+esm1 |
| nodejs | nodejs | >= 0 < 8.10.0~dfsg-2ubuntu0.4+esm1 | 8.10.0~dfsg-2ubuntu0.4+esm1 |
| redhat | openshift_container_platform | — | — |
| the_node.js_project | node.js | — | — |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
vendor_ubuntu5.9MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-q85m-543x-pwpc: In all versions of Node
ghsa_unreviewed·2022-05-13
CVE-2018-12115 [HIGH] CWE-787 GHSA-q85m-543x-pwpc: In all versions of Node
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.
OSV
nodejs vulnerabilities
osv·2021-03-15·CVSS 5.9
CVE-2016-7099 [MEDIUM] nodejs vulnerabilities
nodejs vulnerabilities
Alexander Minozhenko and James Bunton discovered that Node.js did not
properly handle wildcards in name fields of X.509 TLS certificates. An
attacker could use this vulnerability to execute a machine-in-the-middle-
attack. This issue only affected Ubuntu 14.04 ESM and 16.04 ESM. (CVE-2016-7099)
It was discovered that Node.js incorrectly handled certain NAPTR responses.
A remote attacker could possibly use this issue to cause applications using
Node.js to crash, resulting in a denial of service. This issue only affected
Ubuntu 16.04 ESM. (CVE-2017-1000381)
Nikita Skovoroda discovered that Node.js mishandled certain input, leading
to an out of bounds write. An attacker could use this vulnerability to
cause a denial of service (crash) or possibly execute arbitrary co
OSV
CVE-2018-12115: In all versions of Node
osv·2018-08-21·CVSS 7.5
CVE-2018-12115 [HIGH] CVE-2018-12115: In all versions of Node
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.
Ubuntu
Node.js vulnerabilities
vendor_ubuntu·2021-03-15·CVSS 5.9
CVE-2018-7160 [MEDIUM] Node.js vulnerabilities
Title: Node.js vulnerabilities
Summary: Several security issues were fixed in Node.js.
Alexander Minozhenko and James Bunton discovered that Node.js did not
properly handle wildcards in name fields of X.509 TLS certificates. An
attacker could use this vulnerability to execute a machine-in-the-middle-
attack. This issue only affected Ubuntu 14.04 ESM and 16.04 ESM. (CVE-2016-7099)
It was discovered that Node.js incorrectly handled certain NAPTR responses.
A remote attacker could possibly use this issue to cause applications using
Node.js to crash, resulting in a denial of service. This issue only affected
Ubuntu 16.04 ESM. (CVE-2017-1000381)
Nikita Skovoroda discovered that Node.js mishandled certain input, leading
to an out of bounds write. An attacker could use this vulnerability to
c
Red Hat
nodejs: Out of bounds (OOB) write via UCS-2 encoding
vendor_redhat·2018-08-11·CVSS 7.5
CVE-2018-12115 [HIGH] CWE-119 nodejs: Out of bounds (OOB) write via UCS-2 encoding
nodejs: Out of bounds (OOB) write via UCS-2 encoding
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.
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
Debian
CVE-2018-12115: nodejs - In all versions of Node.js prior to 6.14.4, 8.11.4 and 10.9.0 when used with UCS...
vendor_debian·2018·CVSS 7.5
CVE-2018-12115 [HIGH] CVE-2018-12115: nodejs - In all versions of Node.js prior to 6.14.4, 8.11.4 and 10.9.0 when used with UCS...
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.
Scope: local
bookworm: resolved (fixed in 10.15.0~dfsg-6)
bullseye: resolved (fixed in 10.15.0~dfsg-6)
forky: resolved (fixed in 10.15.0~dfsg-6)
sid: resolved (fixed in 10.15.0~dfsg-6)
trixie: resolved (fixed in 10.15.0~dfsg-6)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding [epel-all]
bugzilla·2018-08-23·CVSS 7.5
CVE-2018-12115 [HIGH] CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding [epel-all]
CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions
Bugzilla
CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding [fedora-all]
bugzilla·2018-08-23·CVSS 7.5
CVE-2018-12115 [HIGH] CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding [fedora-all]
CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versi
Bugzilla
CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding
bugzilla·2018-08-22·CVSS 7.5
CVE-2018-12115 [HIGH] CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding
CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding
Node.js TSC member Сковорода Никита Андреевич (Nikita Skovoroda / @ChALkeR) discovered an OOB write in Buffer that can be used to write to memory outside of a Buffer's memory space. This can corrupt unrelated Buffer objects or cause the Node.js process to crash.
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.
Impact:
All previous versions of Node.js 6.x (LTS "Boron") are vulnerable
All previous versions of Node.js 8.x (LTS "Carbon") are
http://www.securityfocus.com/bid/105127https://access.redhat.com/errata/RHSA-2018:2552https://access.redhat.com/errata/RHSA-2018:2553https://access.redhat.com/errata/RHSA-2018:2944https://access.redhat.com/errata/RHSA-2018:2949https://access.redhat.com/errata/RHSA-2018:3537https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/https://security.gentoo.org/glsa/202003-48http://www.securityfocus.com/bid/105127https://access.redhat.com/errata/RHSA-2018:2552https://access.redhat.com/errata/RHSA-2018:2553https://access.redhat.com/errata/RHSA-2018:2944https://access.redhat.com/errata/RHSA-2018:2949https://access.redhat.com/errata/RHSA-2018:3537https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/https://security.gentoo.org/glsa/202003-48
2018-08-21
Published