CVE-2018-3772: Concatenating unsanitized user input in the `whereis` npm module < 0.4.1 allowed an attacker to execute arbitr
CVE-2018-3772 is a critical-severity flaw (CVSS 9.8) affecting whereis. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2018-3772?
whereis: upgrade to 0.4.1. Exact commands for each OS are on this page.
Is CVE-2018-3772 being exploited?
CVE-2018-3772 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-3772 affect?
CVE-2018-3772 affects whereis. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2018-3772?
Priority 66/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action