CVE-2018-3772 json
Command Injection in whereis
published 2018-07-30 8 y ago modified 2026-06-17 4 mo ago also GHSA-wjr4-2jgw-hmv8 , EUVD-2018-0333
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.8%
- EPSS 2.8% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
2.76% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- hackerone.com https://hackerone.com/reports/319476 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | whereis | <0.4.1 |
0.4.1 |
Affected products
- https://github.com/vvo whereis
Classification
References
-
github.com
/vvo/node-whereis/commit/0f64e3780235004fb6e43bfd153ea3e0e210ee2b
web
-
hackerone.com
/reports/319476
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-3772
advisory
-
github.com
/advisories/GHSA-wjr4-2jgw-hmv8
advisory
-
npmjs.com
/advisories/604
web
Sources
- CVE List CVE-2018-3772
- GitHub Advisory GHSA-wjr4-2jgw-hmv8
- NVD CVE-2018-3772
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.