Out-of-bounds Write Affecting nodejs package, versions <8.11.4-r0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ALPINE310-NODEJS-454385
- published 22 Aug 2018
- disclosed 21 Aug 2018
Introduced: 21 Aug 2018
CVE-2018-12115 Open this link in a new tabHow to fix?
Upgrade Alpine:3.10 nodejs to version 8.11.4-r0 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream nodejs package and not the nodejs package as distributed by Alpine.
See How to fix? for Alpine:3.10 relevant fixed versions and status.
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.
References
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12115
- https://security-tracker.debian.org/tracker/CVE-2018-12115
- https://security.gentoo.org/glsa/202003-48
- https://access.redhat.com/errata/RHSA-2018:2552
- https://access.redhat.com/errata/RHSA-2018:2553
- https://access.redhat.com/errata/RHSA-2018:2944
- https://access.redhat.com/errata/RHSA-2018:2949
- https://access.redhat.com/errata/RHSA-2018:3537
- http://www.securityfocus.com/bid/105127
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2018-12115