{"id":"CVE-2018-7166","published":"2018-08-21T13:00:00Z","modified":"2026-10-08T21:14:05Z","title":"In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer.alloc()` to return…","vendor":"The Node.js Project","product":"Node.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03289,"percentile":0.88782,"provenance":"source"},"cwes":[{"id":"CWE-226","name":"Sensitive Information in Resource Not Removed Before Reuse"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:2553","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":17.76}]},"vendorSlug":"the-node-js-project","affectedVersions":[{"vendor":"The Node.js Project","product":"Node.js","versions":["All versions of Node.js 10 prior to 10.9.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-08T21:12:11.382077Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2018-18908","exploited":false,"provenance":"source"}}