All vulnerabilities

Servers and applications

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 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…

Severity
High 7.5
Published
21 Aug 2018
Last changed
8 Oct 2026
Added to UpHeron
21 Oct 2026
Fixed in
10.9.0
Sources
NVD

Affected software

SoftwareAffected versions
Node.jsServers and applications · cpe:a:nodejs:node.js
  • From 10.0.0 before 10.9.0

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2018-7166
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2018-7166