CVE-2018-7166
mediumpriority · track · 31EPSS 0.033 · 88 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- http://www.ibm.com/support/docview.wsscnnvd
- https://access.redhat.com/errata/RHSA-2018:2553cnnvd
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/cnnvd
- https://www-01.ibm.com/support/docview.wss?uid=ibm10735003cnnvd
- https://www.auscert.org.au/bulletins/75694cnnvd
- https://access.redhat.com/errata/RHSA-2018:2553enisa_euvd
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/enisa_euvd
- https://access.redhat.com/errata/RHSA-2018:2553Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan