Insecure Use of /tmp directory Affecting rubocop package, versions <0.49


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.05% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insecure Use of /tmp directory vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RUBOCOP-20447
  • published17 Nov 2017
  • disclosed2 May 2017
  • creditUnknown

Introduced: 2 May 2017

CVE-2017-8418  (opens in a new tab)
CWE-378  (opens in a new tab)

How to fix?

Upgrade RuboCop to version 0.49 or higher.

Overview

RuboCop is a ruby static code analyzer, based on the community Ruby style guide.

Affected version of the package store cache files in /tmp/$UID/rubocop_cache/. Since there are no ownership checks, a malicious local users could exploit this to tamper with cache files belonging to other users.

CVSS Scores

version 3.1