Directory Traversal Affecting rubysl-tmpdir package, versions >=0.0.0
Threat Intelligence
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
Introduced: 18 Mar 2018
CVE-2018-6914 Open this link in a new tabHow 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.