CVE-2018-7166 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2018:2553 | CVE | Third Party Advisory |
| https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/ | CVE | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2018:2553 | [email protected] | Third Party Advisory |
| https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/ | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-908 | Use of Uninitialized Resource | [email protected] |
| CWE-226 | Sensitive Information in Resource Not Removed Before Reuse | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nodejs node.js | >= 10.0.0, < 10.9.0 |
CPE
Remediation
| |
Change History
11 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Modified | [email protected] |
| Oct 8, 2026 | CVE Modified | CISA-ADP |
| Oct 8, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 22, 2020 | Modified Analysis | [email protected] |
| Oct 9, 2019 | CVE Modified | [email protected] |
| Nov 7, 2018 | Initial Analysis | [email protected] |
| Aug 23, 2018 | CVE Modified | [email protected] |
| Aug 21, 2018 | CVE Modified | [email protected] |