{"id":"CVE-2018-7166","aliases":["EUVD-2018-18908","GHSA-6v28-c2x2-8p46","RHBA-2019:0772","RHSA-2018:2553"],"status":"published","title":"In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer...","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.03289,"percentile":0.88562,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-226","CWE-908"],"published":"2018-08-21T12:29:00.32Z","modified":"2026-10-24T10:30:50Z","fixes":[{"ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs","fixed_in":["0:10.10.0-3.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs-debuginfo","fixed_in":["0:10.10.0-3.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs-devel","fixed_in":["0:10.10.0-3.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs-docs","fixed_in":["0:10.10.0-3.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-npm","fixed_in":["0:6.4.1-10.10.0.3.el7"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:10.10.0-3.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:10.10.0-3.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:10.10.0-3.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-nodejs-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:10.10.0-3.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs10-npm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:6.4.1-10.10.0.3.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:openshift_application_runtimes:1.0::el7","package":"npm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:6.2.0-1.10.9.0.1.el7"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift_application_runtimes:1.0::el7","package":"rhoar-nodejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:10.9.0-1.el7"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift_application_runtimes:1.0::el7","package":"rhoar-nodejs-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:10.9.0-1.el7"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:openshift_application_runtimes:1.0::el7","package":"rhoar-nodejs-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:10.9.0-1.el7"}]}],"bundled":3}],"products":[{"vendor":"node.js","product":"node.js"},{"vendor":"nodejs","product":"node.js"},{"vendor":"the node.js project","product":"node.js"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:2553","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7166","tags":["advisory"]},{"url":"https://nodejs.org/en/blog/vulnerability/august-2018-security-releases"},{"url":"https://github.com/advisories/GHSA-6v28-c2x2-8p46"},{"url":"https://access.redhat.com/errata/RHBA-2019:0772","tags":["advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1696153","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhba-2019_0772.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-7166","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1620215","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7166","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_openshift_application_runtimes/1/html-single/red_hat_openshift_application_runtimes_release_notes/index#runtime_components_nodejs_rpm_packages","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1591100","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1620219","tags":["report"]},{"url":"https://issues.redhat.com/browse/NODE-152","tags":["article"]},{"url":"https://issues.redhat.com/browse/NODE-153","tags":["article"]},{"url":"https://issues.redhat.com/browse/NODE-154","tags":["article"]},{"url":"https://issues.redhat.com/browse/NODE-155","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_2553.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-0732","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-0732","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-0732","tags":["advisory"]},{"url":"https://www.openssl.org/news/secadv/20180612.txt","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-12115","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12115","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12115","tags":["advisory"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2018-08-21T13:00:00Z","modified":"2026-10-08T21:14:05.567Z","cwes":["CWE-226"],"updated_at":"2026-11-02T14:35:09.908186Z"}],"euvd":[{"id":"EUVD-2018-18908","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.","status":"published","published":"2018-08-21T13:00:00Z","modified":"2026-10-08T21:14:05Z","updated_at":"2026-11-02T17:27:25.942984Z"}],"ghsa":[{"id":"GHSA-6v28-c2x2-8p46","title":"In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer...","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.","status":"published","published":"2022-05-13T01:16:08Z","modified":"2026-10-09T00:32:03Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-226","CWE-908"],"updated_at":"2026-11-02T15:12:59.31428Z"}],"nvd":[{"id":"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.","status":"published","published":"2018-08-21T12:29:00.32Z","modified":"2026-10-08T22:16:48.227Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-226","CWE-908"],"updated_at":"2026-11-02T14:04:36.842579Z"}],"osv":[{"id":"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.","status":"published","published":"2018-08-21T12:29:00.32Z","modified":"2026-10-24T10:30:50.1428262Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"RHBA-2019:0772","title":"Red Hat Bug Fix Advisory: rh-nodejs10 bug fix update","status":"published","published":"2024-09-13T19:49:05Z","modified":"2026-08-05T10:05:52Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"RHSA-2018:2553","title":"Red Hat Security Advisory: Red Hat OpenShift Application Runtimes Node.js 10.9.0 security update","status":"published","published":"2024-09-13T19:49:28Z","modified":"2026-10-16T10:01:10Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:05.383061Z"}]}}
