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


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.37% (73rd 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 Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RUBYSLTMPDIR-1290063
  • published6 May 2021
  • disclosed18 Mar 2018
  • credit@ooooooo_q

Introduced: 18 Mar 2018

CVE-2018-6914  (opens in a new tab)
CWE-22  (opens in a new tab)

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.

CVSS Base Scores

version 3.1