CVE-2018-7166

Advisory lineage Upstream: 0 Downstream: 2
Modified
Published: 21 Aug 2018, 13:00
Last modified:17 Sept 2024, 00:26

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
0.86% LOW
1% probability +0.26%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

21 Aug 2018, 13:00
Published
Vulnerability first disclosed
17 Sept 2024, 00:26
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • v2.0MEDIUMScore: 5AV:N/AC:L/Au:N/C:P/I:N/A:N

EPSS Trends

Current EPSS score: 0.86% Percentile: 75%

Techniques & Countermeasures

  • CWE-908Use of Uninitialized Resource

    The product uses or accesses a resource that has not been initialized.

  • CWE-226Sensitive Information in Resource Not Removed Before Reuse

    The product releases a resource such as memory or a file so that it can be made available for reuse, but it does not clear or "zeroize" the information contained in the resource before the product performs a critical state transition or makes the resource available for reuse by other entities.

Affected Systems

  • nodejsnode.js

    ≥ 10.0.0, < 10.9.0

  • the node.js projectnode.js

    All versions of Node.js 10 prior to 10.9.0

References (2)