CVE & CISA-KEV Catalog

CVE-2018-12115

HIGHEPSS 94th pctl
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
nodejsDebian
Fixed in:10.15.0~dfsg-6CVE-2018-12115
Fixed in:10.15.0~dfsg-6CVE-2018-12115
Fixed in:10.15.0~dfsg-6CVE-2018-12115
Fixed in:10.15.0~dfsg-6CVE-2018-12115
nodejsUbuntu
Fixed in:0.10.25~dfsg2-2ubuntu1.2+esm1USN-4796-1
Fixed in:4.2.6~dfsg-1ubuntu4.2+esm1USN-4796-1
Fixed in:8.10.0~dfsg-2ubuntu0.4+esm1USN-4796-1
nodejs-devUbuntu
Fixed in:0.10.25~dfsg2-2ubuntu1.2+esm1USN-4796-1
Fixed in:4.2.6~dfsg-1ubuntu4.2+esm1USN-4796-1
Fixed in:8.10.0~dfsg-2ubuntu0.4+esm1USN-4796-1
nodejs-docUbuntu
Fixed in:8.10.0~dfsg-2ubuntu0.4+esm1USN-4796-1
nodejs-legacyUbuntu
Fixed in:0.10.25~dfsg2-2ubuntu1.2+esm1USN-4796-1
Fixed in:4.2.6~dfsg-1ubuntu4.2+esm1USN-4796-1
Node.jsWindows application
Affected:8.0.0 8.11.4Fixed in:8.11.4Node.js Foundation
Affected:6.14.4Fixed in:6.14.4Node.js Foundation
Affected:10.0.0 10.9.0Fixed in:10.9.0Node.js Foundation
Node.js (LTS)Windows application
Affected:6.14.4Fixed in:6.14.4Node.js Foundation
Affected:10.0.0 10.9.0Fixed in:10.9.0Node.js Foundation
Affected:8.0.0 8.11.4Fixed in:8.11.4Node.js Foundation

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

8.03%probability of exploitation in 30 days
94thpercentile

High risk: more likely to be exploited than 94% of all known CVEs.

References

Related Vulnerabilities

Other CWE-787 (Out-of-bounds Write) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-22457Critical9.0100%KEV + RansomFix
CVE-2025-0282Critical9.0100%KEV + Ransom-
CVE-2015-3113Critical9.8100%KEVFix
CVE-2021-20038Critical9.8100%KEV + Ransom-
CVE-2023-4863High8.8100%KEVFix
CVE-2020-16040Medium6.5100%-Fix
Embed a live status badge for CVE-2018-12115
CVE-2018-12115 severity badge

Markdown

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

HTML

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

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.