GitHub Advisory Database
GHSA-wmjf-jpjj-9f3j
RuboCop gem Insecure use of /tmp
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| RubyGems | rubocop | All versions before 0.49.0 (fixed in 0.49.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-8418
- https://github.com/bbatsov/rubocop/issues/4336
- https://github.com/rubocop/rubocop/commit/dcb258fabd5f2624c1ea0e1634763094590c09d7
- https://github.com/bbatsov/rubocop
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubocop/CVE-2017-8418.yml
- http://www.openwall.com/lists/oss-security/2017/05/01/14