CVE-2018-7166
publishednodejs: Unintentional exposure of uninitialized memory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| The Node.js Project | — | Node.jsAll versions of Node.js 10 prior to 10.9.0 | Affected | Not stated | nodejs |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| The Node.js Project | Node.js | All versions of Node.js 10 prior to 10.9.0 (affected) | nodejs · cna |
Weaknesses
1- CWE-226 CWE-226: Sensitive Information Uncleared Before Release
References
2- RHSA-2018:2553 https://access.redhat.com/errata/RHSA-2018:2553
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/
Provider assertions
3nodejs · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2e10cf211b28fe85e277dfa80976c1998ba09afa56e1adda8fba9b2ae896cbaa
- Ingested
- 09 Oct 2026, 16:22:04 UTC
- Source record
- Official CVE record