CVE-2018-7166CWE-226CWE-908

CVE-2018-7166

High · published August 21, 2018

CVSS v3.1
7.5
EPSS
3%
Percentile
86.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.02794 · 86.3th percentile
Weaknesses
CWE-226 · Sensitive Information in Resource Not Removed Before Reuse; CWE-908 · Use of Uninitialized Resource
Published
2018-08-21T16:29Z
Affected products (1)
ProductVersionsFixed in
nodejs/node.js≥ 10.0.0, < 10.9.010.9.0
References (4)
EPSS history
Timeline
  • 21 AUG 13:00Z
    In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer.alloc()` to return uninitialized memory
    cvelistv5