Back to CVE catalog
CVE-2018-7166

Argument processing flaw in Node.js 10 prior to 10.9.0 causes Buffer.alloc() to return uninitialized memory

The Node.js Project Node.js

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS summary v3.1

7.5High
Published:
Updated:
EPSS:
3.289%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:The Node.js ProjectNode.jsAffected versions:
All versions of Node.js 10 prior to 10.9.0
Vendor:Red HatRed Hat OpenShift Application Runtimes Node.js 10Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)Affected versions:Source does not specify a version range
Vendor:nodejsnode.jsAffected versions:
≥ 10.0.0, < 10.9.0Show full version range for node.js
  • CPE applicability can depend on other products or environments. Consult the full source configuration.

1–8 of 8 · Page 1 of 1

CVSS scores and metrics4
[email protected] · NVD (Primary)Primary7.5 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
None
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVE-2018-7166 · OSV (source-vector)7.5 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
None
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Red Hat · Red Hat VEX (adp)5.3 / 10MediumCVSS 3.0Details
Attack complexity
Low
Confidentiality
Low
Integrity
None
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
[email protected] · NVD (Primary)5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
None
Availability
None
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories7

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences