Skip to content
CVE Tracker
Back

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…

High7.5EPSS 3.3%
Published
Updated
Reserved
Assigned by
nodejs

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.

Scores

CVSS scores of CVE-2018-7166, by who scored it
Scored byCVSSScoreVector
NVDNVD · Modified3.1High7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS (exploitation in 30 days)
3.3% · top 12% of all CVEs (2 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: yes · Technical impact: partial

Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.

Weakness

Affected products

  • The Node.js Project · Node.js

    • affected All versions of Node.js 10 prior to 10.9.0

References (2)

Sources

The same CVE in the primary databases and aggregators, to check against.

Record last updated .