CVE-2018-12115
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nodejs | Alpine | 8.11.4-r0 |
| nodejs | Ubuntu:Pro:18.04:LTS | 8.10.0~dfsg-2ubuntu0.4+esm1 |
| node.js | nodejs | 10.9.0, 8.11.4, 6.14.4 |
| alpine/nodejs-25 | alpine | 10.9.0, 8.11.4, 6.14.4 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| The Node.js Project | Node.js | All versions of Node.js prior to 6.14.4, 8.11.4 and 10.9.0 |
| alpine | nodejs | 0 |
| The Node.js Project | Node.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
- 105127 vdb-entryx_refsource_BID
- RHSA-2018:2552 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2553 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2944 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- RHSA-2018:3537 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2949 vendor-advisoryx_refsource_REDHAT
- GLSA-202003-48 vendor-advisoryx_refsource_GENTOO