{"id":"CVE-2018-3772","aliases":["GHSA-wjr4-2jgw-hmv8"],"kind":"cve","tier":"cold","status":"published","title":"Command Injection in whereis","description":"Concatenating unsanitized user input in the `whereis` npm module < 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.","ai_summary":null,"severity":"critical","cvss":{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},"scores":[{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd"},{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-77"],"remote":true,"remote_unauth":true,"epss":{"score":0.0276,"percentile":0.86677,"date":"2026-12-02"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[{"ecosystem":"npm","name":"whereis","affected":"< 0.4.1","fixed":["0.4.1"],"source":"osv"}],"affected_products":[{"vendor":"https://github.com/vvo","product":"whereis","versions":">= 0.4.1","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade whereis to 0.4.1 or later.","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3772","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-wjr4-2jgw-hmv8","kind":"vendor"},{"url":"https://github.com/vvo/node-whereis/commit/0f64e3780235004fb6e43bfd153ea3e0e210ee2b","kind":"patch"},{"url":"https://hackerone.com/reports/319476","kind":"exploit"},{"url":"https://www.npmjs.com/advisories/604","kind":"other"}],"workarounds":null,"vendors":["https://github.com/vvo","whereis_project"],"products":["whereis"],"cpes":["cpe:2.3:a:whereis_project:whereis:*:*:*:*:*:node.js:*:*"],"published_at":"2018-07-30T18:00:00.000Z","modified_at":"2026-06-17T01:57:48.137Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3772"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-wjr4-2jgw-hmv8","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2018-3772","markdown":"https://flawdb.com/CVE-2018-3772.md","json":"https://flawdb.com/api/v1/entries/CVE-2018-3772"}}