{"id":"CVE-2018-13797","aliases":["DEBIAN-CVE-2018-13797","EUVD-2018-0463","GHSA-pp57-mqmh-44h7","UBUNTU-CVE-2018-13797"],"status":"published","title":"Command Injection in macaddress","description":"The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.06664,"percentile":0.93934,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-78"],"published":"2018-07-10T12:00:00Z","modified":"2026-10-23T18:02:59Z","exploits":[{"source":"pocgithub","id":"dsp-testing/CVE-2018-13797","title":"dsp-testing/CVE-2018-13797","date":"2021-01-05","url":"https://github.com/dsp-testing/CVE-2018-13797"}],"fixes":[{"ecosystem":"npm","package":"macaddress","fixed_in":["0.2.9"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-macaddress","fixed_in":["0.2.9-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-macaddress","fixed_in":["0.2.9-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-macaddress","fixed_in":["0.2.9-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"macaddress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.9"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"node-macaddress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.9-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-macaddress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.9-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-macaddress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.9-1"}]}]},{"source":"osv","ecosystem":"npm","package":"macaddress","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.9"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"node-macaddress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.8-1","0.2.8-2"]}],"products":[{"vendor":"node-macaddress_project","product":"node-macaddress"}],"references":[{"url":"https://github.com/scravy/node-macaddress/pull/20/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://github.com/scravy/node-macaddress/commit/358fd594adb196a86b94ac9c691f69fe5dad2332","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/scravy/node-macaddress/releases/tag/0.2.9","tags":["x_refsource_MISC","x_transferred","Patch","Release Notes","Third Party Advisory","fix","web","report"]},{"url":"https://news.ycombinator.com/item?id=17283394","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-13797","tags":["advisory"]},{"url":"https://github.com/scravy/node-macaddress/pull/20","tags":["web","report"]},{"url":"https://hackerone.com/reports/319467","tags":["web"]},{"url":"https://github.com/advisories/GHSA-pp57-mqmh-44h7","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/654","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-13797","tags":["advisory"]},{"url":"https://github.com/scravy/node-macaddress","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2018-13797","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-13797","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-13797","description":"The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.","status":"published","published":"2018-07-10T12:00:00Z","modified":"2024-09-16T23:46:07.363Z","updated_at":"2026-11-02T14:35:07.01498Z"}],"euvd":[{"id":"EUVD-2018-0463","description":"The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.","status":"published","published":"2018-07-10T12:00:00Z","modified":"2024-09-16T23:46:07Z","updated_at":"2026-11-03T00:54:46.734285Z"}],"ghsa":[{"id":"GHSA-pp57-mqmh-44h7","title":"Command Injection in macaddress","description":"All versions of `macaddress` are vulnerable to command injection. For this vulnerability to be exploited an attacker needs to control the `iface` argument to the `one` method.\n\n\n## Recommendation\n\nUpdate to version 0.2.9 or later.","status":"published","published":"2018-09-06T23:24:21Z","modified":"2023-01-09T05:03:20Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:36:05.071174Z"}],"nvd":[{"id":"CVE-2018-13797","description":"The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.","status":"published","published":"2018-07-10T12:29:00.207Z","modified":"2026-06-17T01:40:11.203Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:04:32.929986Z"}],"osv":[{"id":"CVE-2018-13797","description":"The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.","status":"published","published":"2018-07-10T12:29:00.207Z","modified":"2026-10-20T10:49:48.244049387Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:08.242347Z"},{"id":"DEBIAN-CVE-2018-13797","description":"The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.","status":"published","published":"2018-07-10T12:29:00.207Z","modified":"2026-10-23T18:02:59.143131514Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:30.290351Z"},{"id":"GHSA-pp57-mqmh-44h7","title":"Command Injection in macaddress","description":"All versions of `macaddress` are vulnerable to command injection. For this vulnerability to be exploited an attacker needs to control the `iface` argument to the `one` method.\n\n\n## Recommendation\n\nUpdate to version 0.2.9 or later.","status":"published","published":"2018-09-06T23:24:21Z","modified":"2023-11-08T03:59:54.364978Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:46:53.244788Z"},{"id":"UBUNTU-CVE-2018-13797","description":"The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.","status":"published","published":"2018-07-10T12:29:00Z","modified":"2025-10-24T04:47:08Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:17.014176Z"}]}}
