CVE-2018-3772
CRITICAL 9.8CVSS 3.0Command Injection in whereis
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.
- Published
- 30 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-77
- Also known as
- GHSA-wjr4-2jgw-hmv8
- Sources
- NVDJSONOSV GHSA-wjr4-2jgw-hmv8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | whereis_project | whereiscpe:2.3:a:whereis_project:whereis:*:*:*:*:*:node.js:*:* |
< 0.4.1 | 0.4.1 |
| OSV | npm | whereis | < 0.4.1 | 0.4.1 |
References
- https://hackerone.com/reports/319476 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-3772 · ADVISORY
- https://github.com/vvo/node-whereis/commit/0f64e3780235004fb6e43bfd153ea3e0e210ee2b · WEB
- https://github.com/advisories/GHSA-wjr4-2jgw-hmv8 · ADVISORY
- https://www.npmjs.com/advisories/604 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 30 Jul 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Jul 2018)