Directory Traversal Affecting rubysl-tmpdir package, versions >=0.0.0


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High

    Threat Intelligence

    EPSS 0.2% (57th percentile)
Expand this section
NVD
7.5 high
Expand this section
SUSE
3.7 low
Expand this section
Red Hat
3.7 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-RUBYSLTMPDIR-1290063
  • published 6 May 2021
  • disclosed 18 Mar 2018
  • credit @ooooooo_q

How to fix?

There is no fixed version for rubysl-tmpdir.

Overview

rubysl-tmpdir is a ruby standard library for tmpdir.

Affected versions of this package are vulnerable to Directory Traversal. Dir.mktmpdir method introduced by tmpdir library accepts the prefix and the suffix of the directory which is created as the first parameter. The prefix can contain relative directory specifiers "../", so this method can be used to target any directory. So, if a script accepts an external input as the prefix, and the targeted directory has inappropriate permissions or the ruby process has inappropriate privileges, the attacker can create a directory or a file at any directory.