3.3low

CVE-2017-8418

RuboCop gem Insecure use of /tmp

Also known as GHSA-wmjf-jpjj-9f3j

Published 9 y ago · modified 4 mo ago · JSON

CVSS
3.3
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
0.4%
percentile 35%
Public exploits
0
none known

Summary

RuboCop 0.48.1 and earlier does not use /tmp in safe way, allowing local users to exploit this to tamper with cache files belonging to other users.

Exploit prediction (EPSS)

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

CVSS scores

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

Affected packages

EcosystemPackageAffectedFixed in
rubygemsrubocop
<0.49.0
0.49.0

Classification

Weakness
  • CWE-668 Exposure of Resource to Wrong Sphere

References

  • openwall.com /lists/oss-security/2017/05/01/14 · x_refsource_MISC, x_transferred
  • github.com /bbatsov/rubocop/issues/4336 · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2017-8418 · advisory
  • github.com /rubocop/rubocop/commit/dcb258fabd5f2624c1ea0e1634763094590c09d7 · web
  • github.com /bbatsov/rubocop · package
  • github.com /rubysec/ruby-advisory-db/blob/master/gems/rubocop/CVE-2017-8418.yml · web

Sources

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