Staging Environment: Content and features may be unstable or change without notice.

Advisory Weakness Curation

CVE-2013-0162

Progress 0 / 0

Advisory Summaries

github_osv/GHSA-8mvw-22r7-w6fq

ruby_parser allows local users to overwrite arbitrary files via symlink attack on temporary file with predictable name The `diff_pp` function in `lib/gauntlet_rubyparser.rb` in the ruby_parser gem 3.1.1 and earlier for Ruby allows local users to overwrite arbitrary files via a symlink attack on a temporary file with a predictable name in `/tmp`.

gitlab/gem/ruby_parser/CVE-2013-0162

Incorrect temporary file usage The ruby_parser Gem does not create temporary files securely. In the `diff_pp` function contained in `lib/gauntlet_rubyparser.rb` function, it creates files as `/tmp/a.[pid]` and `/tmp/b.[pid]` which can be predicted and used for either a denial of service (file cannot be overwritten), or to change the contents of files that are writable.