bbatsov/rubocop · Security
RuboCop gem Insecure use of /tmp
- GHSA ID
- GHSA-wmjf-jpjj-9f3j
- CVE ID
- CVE-2017-8418
- Severity
- low
- Published
- Updated
- CVSS
- 3.3 · CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- CVSS v3
- 3.3 · CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Description
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.
CWEs
- CWE-668 · Exposure of Resource to Wrong Sphere
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-8418 ↗
- https://github.com/bbatsov/rubocop/issues/4336 ↗
- http://www.openwall.com/lists/oss-security/2017/05/01/14 ↗
- https://github.com/rubocop/rubocop/commit/dcb258fabd5f2624c1ea0e1634763094590c09d7 ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubocop/CVE-2017-8418.yml ↗
- https://github.com/advisories/GHSA-wmjf-jpjj-9f3j ↗