RubySec

Providing security resources for the Ruby community

CVE-2013-0162 (ruby_parser): CVE-2013-0162 rubygem-ruby_parser: incorrect temporary file usage

ADVISORIES

GEM

ruby_parser

SEVERITY

CVSS v2: 2.1 (Low)

PATCHED VERSIONS

  • >= 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.