{"id":"CVE-2018-7166","state":"PUBLISHED","title":"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 re","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.","publishedAt":"2018-08-21T13:00:00.000Z","updatedAt":"2026-10-08T21:14:05.567Z","severity":null,"assigner":"nodejs","products":["The Node.js Project Node.js"],"affected":[{"vendor":"The Node.js Project","product":"Node.js","versions":[{"version":"All versions of Node.js 10 prior to 10.9.0","status":"affected"}]}],"references":["https://access.redhat.com/errata/RHSA-2018:2553","https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/"],"weaknesses":["CWE-226"],"ingestedAt":"2026-10-29T19:45:00.684Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/7xxx/CVE-2018-7166.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2018-7166","state":"PUBLISHED","datePublished":"2018-08-21T13:00:00.000Z","dateUpdated":"2026-10-08T21:14:05.567Z","assignerShortName":"nodejs","assignerOrgId":"386269d4-a6c6-4eaa-bf8e-bc0b0d010558","dateReserved":"2018-02-15T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"The Node.js Project","product":"Node.js","versions":[{"version":"All versions of Node.js 10 prior to 10.9.0","status":"affected"}]}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:2553","name":"RHSA-2018:2553","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-226","description":"CWE-226: Sensitive Information Uncleared Before Release","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"nodejs","dateUpdated":"2018-08-23T09:57:01.000Z","orgId":"386269d4-a6c6-4eaa-bf8e-bc0b0d010558"},"datePublic":"2018-08-12T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve-request@iojs.org","DATE_PUBLIC":"2018-08-12T00:00:00","ID":"CVE-2018-7166","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Node.js","version":{"version_data":[{"version_value":"All versions of Node.js 10 prior to 10.9.0"}]}}]},"vendor_name":"The Node.js Project"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-226: Sensitive Information Uncleared Before Release"}]}]},"references":{"reference_data":[{"name":"RHSA-2018:2553","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2018:2553"},{"name":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","refsource":"CONFIRM","url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://access.redhat.com/errata/RHSA-2018:2553","name":"RHSA-2018:2553","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T06:24:11.399Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2018-7166","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-08T21:12:11.382077Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-08T21:14:05.567Z"}}]}}}