{"id":"CVE-2018-3786","aliases":["EUVD-2018-0451","GHSA-c9j3-wqph-5xx9"],"status":"published","title":"Command Injection in egg-scripts","description":"A command injection vulnerability in egg-scripts \u003cv2.8.1 allows arbitrary shell command execution through a maliciously crafted command line argument.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/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.12283,"percentile":0.96213,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-77","CWE-78"],"published":"2018-08-24T20:00:00Z","modified":"2026-10-20T10:49:55Z","exploits":[{"source":"pocgithub","id":"erik-krogh/egg-scripts-CVE-2018-3786","title":"erik-krogh/egg-scripts-CVE-2018-3786","date":"2020-05-19","url":"https://github.com/erik-krogh/egg-scripts-CVE-2018-3786"}],"fixes":[{"ecosystem":"npm","package":"egg-scripts","fixed_in":["2.8.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"egg-scripts","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.1"}]}]},{"source":"osv","ecosystem":"npm","package":"egg-scripts","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.8.1"}]}]}],"products":[{"vendor":"egg","product":"egg-scripts"},{"vendor":"eggjs","product":"egg-scripts"}],"references":[{"url":"https://github.com/eggjs/egg-scripts/pull/26","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://hackerone.com/reports/388936","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/eggjs/egg-scripts/blob/2.8.1/History.md","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3786","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c9j3-wqph-5xx9","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/694","tags":["web"]},{"url":"https://github.com/eggjs/egg-scripts/commit/b98fd03d1e3aaed68004b881f0b3d42fe47341dd","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-3786","description":"A command injection vulnerability in egg-scripts \u003cv2.8.1 allows arbitrary shell command execution through a maliciously crafted command line argument.","status":"published","published":"2018-08-24T20:00:00Z","modified":"2024-09-16T17:59:02.562Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:35:05.619113Z"}],"euvd":[{"id":"EUVD-2018-0451","description":"A command injection vulnerability in egg-scripts \u003cv2.8.1 allows arbitrary shell command execution through a maliciously crafted command line argument.","status":"published","published":"2018-08-24T20:00:00Z","modified":"2024-09-16T17:59:02Z","updated_at":"2026-11-03T00:55:36.806318Z"}],"ghsa":[{"id":"GHSA-c9j3-wqph-5xx9","title":"Command Injection in egg-scripts","description":"Versions of `egg-scripts` before 2.8.1 are vulnerable to command injection. This is only exploitable if a malicious argument is provided on the command line.\n\n\nExample:\n`eggctl start --daemon --stderr='/tmp/eggctl_stderr.log; touch /tmp/malicious'`\n\n\n## Recommendation\n\nUpdate to version 2.8.1 or later.","status":"published","published":"2018-09-17T20:43:34Z","modified":"2023-09-18T20:44:26Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:37:05.567008Z"}],"nvd":[{"id":"CVE-2018-3786","description":"A command injection vulnerability in egg-scripts \u003cv2.8.1 allows arbitrary shell command execution through a maliciously crafted command line argument.","status":"published","published":"2018-08-24T20:29:00.23Z","modified":"2026-06-17T01:57:49.457Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:04:36.842579Z"}],"osv":[{"id":"CVE-2018-3786","description":"A command injection vulnerability in egg-scripts \u003cv2.8.1 allows arbitrary shell command execution through a maliciously crafted command line argument.","status":"published","published":"2018-08-24T20:29:00.23Z","modified":"2026-10-20T10:49:55.144097384Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:09.442568Z"},{"id":"GHSA-c9j3-wqph-5xx9","title":"Command Injection in egg-scripts","description":"Versions of `egg-scripts` before 2.8.1 are vulnerable to command injection. This is only exploitable if a malicious argument is provided on the command line.\n\n\nExample:\n`eggctl start --daemon --stderr='/tmp/eggctl_stderr.log; touch /tmp/malicious'`\n\n\n## Recommendation\n\nUpdate to version 2.8.1 or later.","status":"published","published":"2018-09-17T20:43:34Z","modified":"2023-11-08T04:00:20.228557Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T15:46:44.927642Z"}]}}
