{"api_version":"1","generated_at":"2026-07-23T03:25:58+00:00","cve":"CVE-2018-7166","urls":{"html":"https://cve.report/CVE-2018-7166","api":"https://cve.report/api/cve/CVE-2018-7166.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-7166","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-7166"},"summary":{"title":"CVE-2018-7166","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.","state":"PUBLIC","assigner":"cve-request@iojs.org","published_at":"2018-08-21 12:29:00","updated_at":"2020-09-22 13:59:00"},"problem_types":["CWE-908"],"metrics":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:2553","name":"RHSA-2018:2553","refsource":"REDHAT","tags":["Third Party Advisory"],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","name":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"August 2018 Security Releases | Node.js","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7166","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7166","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"7166","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nodejs","cpe5":"node.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"7166","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nodejs","cpe5":"node.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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/"}]}},"nvd":{"publishedDate":"2018-08-21 12:29:00","lastModifiedDate":"2020-09-22 13:59:00","problem_types":["CWE-908"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*","versionStartIncluding":"10.0.0","versionEndExcluding":"10.9.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"7166","Ordinal":"123403","Title":"CVE-2018-7166","CVE":"CVE-2018-7166","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"7166","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"7166","Ordinal":"2","NoteData":"2018-08-21","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"7166","Ordinal":"3","NoteData":"2018-08-23","Type":"Other","Title":"Modified"}]}}}