{"id":"CVE-2018-3772","aliases":["EUVD-2018-0333","GHSA-wjr4-2jgw-hmv8"],"status":"published","title":"Command Injection in whereis","description":"Concatenating unsanitized user input in the `whereis` npm module \u003c 0.4.1 allowed an attacker to execute arbitrary commands. The `whereis` module is deprecated and it is recommended to use the `which` npm module instead.","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.0276,"percentile":0.86359,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-77"],"published":"2018-07-30T18:00:00Z","modified":"2026-06-17T01:57:48Z","fixes":[{"ecosystem":"npm","package":"whereis","fixed_in":["0.4.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"whereis","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.1"}]}]},{"source":"osv","ecosystem":"npm","package":"whereis","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.1"}]}]}],"products":[{"vendor":"https://github.com/vvo","product":"whereis"},{"vendor":"whereis_project","product":"whereis"}],"references":[{"url":"https://hackerone.com/reports/319476","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3772","tags":["advisory"]},{"url":"https://github.com/vvo/node-whereis/commit/0f64e3780235004fb6e43bfd153ea3e0e210ee2b","tags":["web"]},{"url":"https://github.com/advisories/GHSA-wjr4-2jgw-hmv8","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/604","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-3772","description":"Concatenating unsanitized user input in the `whereis` npm module \u003c 0.4.1 allowed an attacker to execute arbitrary commands. The `whereis` module is deprecated and it is recommended to use the `which` npm module instead.","status":"published","published":"2018-07-30T18:00:00Z","modified":"2024-09-17T02:26:55.08Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:35:05.619113Z"}],"euvd":[{"id":"EUVD-2018-0333","description":"Concatenating unsanitized user input in the `whereis` npm module \u003c 0.4.1 allowed an attacker to execute arbitrary commands. The `whereis` module is deprecated and it is recommended to use the `which` npm module instead.","status":"published","published":"2018-07-30T18:00:00Z","modified":"2024-09-17T02:26:55Z","updated_at":"2026-11-03T00:28:40.410394Z"}],"ghsa":[{"id":"GHSA-wjr4-2jgw-hmv8","title":"Command Injection in whereis","description":"Versions of `whereis` before 0.4.1 are vulnerable to command injection if untrusted user input is passed into `whereis`.\n\n\n## Recommendation\n\nUpdate to version 0.4.1 or later.","status":"published","published":"2018-07-31T18:28:53Z","modified":"2023-09-12T21:12:31Z","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-77"],"updated_at":"2026-11-02T14:37:05.004935Z"}],"nvd":[{"id":"CVE-2018-3772","description":"Concatenating unsanitized user input in the `whereis` npm module \u003c 0.4.1 allowed an attacker to execute arbitrary commands. The `whereis` module is deprecated and it is recommended to use the `which` npm module instead.","status":"published","published":"2018-07-30T18:29:00.78Z","modified":"2026-06-17T01:57:48.137Z","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-77","CWE-20"],"updated_at":"2026-11-02T14:04:35.310988Z"}],"osv":[{"id":"GHSA-wjr4-2jgw-hmv8","title":"Command Injection in whereis","description":"Versions of `whereis` before 0.4.1 are vulnerable to command injection if untrusted user input is passed into `whereis`.\n\n\n## Recommendation\n\nUpdate to version 0.4.1 or later.","status":"published","published":"2018-07-31T18:28:53Z","modified":"2023-11-08T04:00:19.633112Z","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-77"],"updated_at":"2026-11-02T15:46:58.767335Z"}]}}
