Vulnerability in Node.js
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. 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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.028 (85.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 86th percentile — 85.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.032 · newest: 0.028 · change: -0.004
Affected products
- Node.js
- The Node.js Project — versions All versions of Node.js 10 prior to 10.9.0
Weakness classification (CWE)
References
- access.redhat.com/errata/RHSA-2018:2553 (vendor-advisory, Third Party Advisory)
- nodejs.org/en/blog/vulnerability/august-2018-security-releases/ (Vendor Advisory)
Frequently asked questions
- What is CVE-2018-7166?
- CVE-2018-7166 is a high-severity vulnerability in Node.js, classified under Sensitive Information in Resource Not Removed Before Reuse. CVSS score: 7.5/10. Published 2018-08-21.
- How severe is CVE-2018-7166?
- High severity. CVSS v3 base score is 7.5 out of 10.