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


0.0
low

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.04% (6th percentile)
Expand this section
NVD
3.3 low

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 ID SNYK-RUBY-RUBOCOP-20447
  • published 17 Nov 2017
  • disclosed 2 May 2017
  • credit Unknown

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.