VDB

CVE-2018-12115

CVE-2018-12115 PUBLISHED

Reported by nodejs · Published August 21, 2018

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nodejsAlpine8.11.4-r0
nodejsUbuntu:Pro:18.04:LTS8.10.0~dfsg-2ubuntu0.4+esm1
node.jsnodejs10.9.0, 8.11.4, 6.14.4
alpine/nodejs-25alpine10.9.0, 8.11.4, 6.14.4

Affected products

VendorProductVersions
The Node.js ProjectNode.jsAll versions of Node.js prior to 6.14.4, 8.11.4 and 10.9.0
alpinenodejs0
The Node.js ProjectNode.js*

Timeline

  • Aug 21, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (6 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (8 in total, the first dated here)
  • Sep 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-12115
vulnetix vdb fixes CVE-2018-12115

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-12115/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›