CVE-2018-7166

High

Description

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.

SeverityHigh
CVSS7.5
Exploit probability88. percentile3.3%
ProductNodejs Node.js
PublishedAug 21, 2018
First seenAug 21, 2018
Weakness typeCWE-226CWE-226

How to fix

Update
  • nodejs node.js10.9.0 or later

Affected products

ProductAffected versionsFixed in
nodejs node.js10.0.0 ≤ v < 10.9.010.9.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2018-7166 · Nodejs Node.js · Dark Radar