Vulnerabilities · 2018 · Nodejs
CVE-2018-7166
Nodejs Node.js vulnerability
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.
Affected products
Node.js. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Nodejs Node.js runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Nodejs products
CVE-2026-22036CVE-2026-21637CVE-2026-21636CVE-2025-59466CVE-2025-59465CVE-2025-59464CVE-2025-55132CVE-2025-55130All 154
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.