CVE-2018-7166
In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer.alloc()` to return uninitialized memory.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.24%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 3.24% probability · 88th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-226, CWE-908
- Affected
- nodejs/node.js
- Source
- cve-request@iojs.org
References
- https://access.redhat.com/errata/RHSA-2018:2553Third Party Advisory
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/Vendor Advisory
- https://access.redhat.com/errata/RHSA-2018:2553Third Party Advisory
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.