GitHub Advisoryadvisory · RubyGems

GHSA-8mvw-22r7-w6fq ruby_parser allows local users to overwrite arbitrary files via symlink attack on temporary file with predictable name

LOW Published 2022-05-05 Modified 2023-03-08 Official page ↗
Aliases
CVE-2013-0162
Ecosystem
RubyGems
Packages
ruby_parser
Severity
Low
Weaknesses
CWE-377
Reviewed
2023-03-08

Affected packages

• RubyGems ruby_parser: >= 2.0.2, < 3.1.2 → fixed in 3.1.2

Description

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`.

Related

Weakness · not in database (1)

Alias · CVE (1)

  • CVE-2013-0162 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… vulnerability

References