Live threats

All CVEs / Nodejs

CVE-2018-7166Nodejs Node.js

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.3%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Aug 21, 2018
Updated
Oct 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-226, CWE-908
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Node.js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
nodejsnode.js≥ 10.0.0 < 10.9.0

Official sources

References

Links published by the sources. Open them with care.