Every CVE Search/ Get API key

CVE-2018-7166

In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer...

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

3.29%Up 2.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2018-7166
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-226, CWE-908
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2018-7166
Weakness
CWE-226
Updated
2026-11-02
EUVDEUVD-2018-18908 No score

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.

Record
EUVD-2018-18908
Updated
2026-11-02
GitHub AdvisoriesGHSA-6v28-c2x2-8p46 7.5

In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer...

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.

Record
GHSA-6v28-c2x2-8p46
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-226, CWE-908
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2018-7166
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHBA-2019:0772 5.3

Red Hat Bug Fix Advisory: rh-nodejs10 bug fix update

Record
RHBA-2019:0772
CVSS 3.0
5.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVRHSA-2018:2553 8.1

Red Hat Security Advisory: Red Hat OpenShift Application Runtimes Node.js 10.9.0 security update

Record
RHSA-2018:2553
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
rh-nodejs10-nodejs
Red Hat:rhel_software_collections:3::el7
before 0:10.10.0-3.el7
0:10.10.0-3.el7
rh-nodejs10-nodejs-debuginfo
Red Hat:rhel_software_collections:3::el7
before 0:10.10.0-3.el7
0:10.10.0-3.el7
rh-nodejs10-nodejs-devel
Red Hat:rhel_software_collections:3::el7
before 0:10.10.0-3.el7
0:10.10.0-3.el7
rh-nodejs10-nodejs-docs
Red Hat:rhel_software_collections:3::el7
before 0:10.10.0-3.el7
0:10.10.0-3.el7
rh-nodejs10-npm
Red Hat:rhel_software_collections:3::el7
before 0:6.4.1-10.10.0.3.el7
0:6.4.1-10.10.0.3.el7
npm
Red Hat:openshift_application_runtimes:1.0::el7
before 1:6.2.0-1.10.9.0.1.el7
1:6.2.0-1.10.9.0.1.el7
rhoar-nodejs
Red Hat:openshift_application_runtimes:1.0::el7
before 1:10.9.0-1.el7
1:10.9.0-1.el7
rhoar-nodejs-debuginfo
Red Hat:openshift_application_runtimes:1.0::el7
before 1:10.9.0-1.el7
1:10.9.0-1.el7
rhoar-nodejs-docs
Red Hat:openshift_application_runtimes:1.0::el7
before 1:10.9.0-1.el7
1:10.9.0-1.el7

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-7166 is a high vulnerability (CVSS 7.5) in Node.js, published August 21, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.29%, the 88th percentile. Fixed in rh-nodejs10-nodejs 0:10.10.0-3.el7.

References

Show 20 moreShow less
MoveEnter Open