Live threats

All CVEs / Nodejs

CVE-2018-12115Nodejs Node.js

High 7.5 No auth needed

Priority
61
CVSS 3.0
7.5
EPSS
7.8%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Aug 21, 2018
Updated
Oct 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-787
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Node.js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
nodejsnode.js< 6.14.4
nodejsnode.js≥ 8.0.0 < 8.11.4
nodejsnode.js≥ 10.0.0 < 10.9.0
redhatopenshift_container_platform3.11

Official sources

References

Links published by the sources. Open them with care.