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 trend (30 days)EPSS over the last 30 days for CVE-2018-7166: held from 0.032 to 0.028.

EPSS over last 30 days · oldest: 0.032 · newest: 0.028 · change: -0.004

Affected products

Weakness classification (CWE)

References

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.