CVE-2018-7166
Vulnerability Summary
Timeline
Description
In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer.alloc()` to return uninitialized memory. This method is intended to be safe and only return initialized, or cleared, memory. The third argument specifying `encoding` can be passed as a number, this is misinterpreted by `Buffer's` internal "fill" method as the `start` to a fill operation. This flaw may be abused where `Buffer.alloc()` arguments are derived from user input to return uncleared memory blocks that may contain sensitive information.
CVSS Metrics
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- v3.0•MEDIUM•Score: 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- v2.0•MEDIUM•Score: 5AV:N/AC:L/Au:N/C:P/I:N/A:N
EPSS Trends
Current EPSS score: 3.24%• Percentile: 88%
Techniques & Countermeasures
- CWE-226•Sensitive Information in Resource Not Removed Before Reuse
The product releases a resource such as memory or a file so that it can be made available for reuse, but it does not clear or "zeroize" the information contained in the resource before the product performs a critical state transition or makes the resource available for reuse by other entities.
- CWE-908•Use of Uninitialized Resource
The product uses or accesses a resource that has not been initialized.
Affected Systems
- nodejs•node.js
≥ 10.0.0, < 10.9.0
- redhat•rh-nodejs10-nodejs
< 0:10.10.0-3.el7
- redhat•rh-nodejs10-nodejs-debuginfo
< 0:10.10.0-3.el7
- redhat•rh-nodejs10-nodejs-devel
< 0:10.10.0-3.el7
- redhat•rh-nodejs10-nodejs-docs
< 0:10.10.0-3.el7
- redhat•rh-nodejs10-npm
< 0:6.4.1-10.10.0.3.el7
- the node.js project•node.js
All versions of Node.js 10 prior to 10.9.0
References (9)
- https://access.redhat.com/errata/RHSA-2018:2553
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/
- https://access.redhat.com/errata/RHBA-2019:0772
- https://bugzilla.redhat.com/show_bug.cgi?id=1696153
- https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhba-2019_0772.json
- https://access.redhat.com/security/cve/CVE-2018-7166
- https://bugzilla.redhat.com/show_bug.cgi?id=1620215
- https://www.cve.org/CVERecord?id=CVE-2018-7166
- https://nvd.nist.gov/vuln/detail/CVE-2018-7166