9.8crit

CVE-2018-3772

Command Injection in whereis

Also known as GHSA-wjr4-2jgw-hmv8

Published 8 y ago · modified 4 mo ago · JSON

CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
2.8%
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.

Exploit prediction (EPSS)

2.76% probability of exploitation in the next 30 days, higher than 86% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

EcosystemPackageAffectedFixed in
npmwhereis
<0.4.1
0.4.1

Affected products

  • https://github.com/vvo whereis

Classification

Weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command
  • CWE-20 Improper Input Validation

References

  • hackerone.com /reports/319476 · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2018-3772 · advisory
  • github.com /vvo/node-whereis/commit/0f64e3780235004fb6e43bfd153ea3e0e210ee2b · web
  • github.com /advisories/GHSA-wjr4-2jgw-hmv8 · advisory
  • npmjs.com /advisories/604 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.