{"id":"GHSA-8mvw-22r7-w6fq","summary":"ruby_parser allows local users to overwrite arbitrary files via symlink attack on temporary file with predictable name","details":"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`.","aliases":["CVE-2013-0162"],"modified":"2024-11-29T05:40:03.993107Z","published":"2022-05-05T02:48:30Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-03-08T19:28:01Z","nvd_published_at":"2013-03-01T05:40:00Z","cwe_ids":["CWE-377"],"severity":"LOW"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-0162"},{"type":"WEB","url":"https://github.com/seattlerb/ruby_parser/commit/506c7e13cff6f8715385fa8488b621028b4ad280"},{"type":"WEB","url":"https://github.com/seattlerb/ruby_parser/commit/c35acd878d50a8e4ea35933e3fbdc493421d422c"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2013:0544"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2013:0582"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2013-0162"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=892806"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby_parser/CVE-2013-0162.yml"},{"type":"PACKAGE","url":"https://github.com/seattlerb/ruby_parser"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2013-0544.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2013-0548.html"}],"affected":[{"package":{"name":"ruby_parser","ecosystem":"RubyGems","purl":"pkg:gem/ruby_parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.2"},{"fixed":"3.1.2"}]}],"versions":["2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.1.0","2.2.0","2.3.0","2.3.1","3.0.0","3.0.0.a1","3.0.0.a10","3.0.0.a2","3.0.0.a3","3.0.0.a4","3.0.0.a5","3.0.0.a6","3.0.0.a7","3.0.0.a8","3.0.0.a9","3.0.1","3.0.2","3.0.3","3.0.4","3.1.0","3.1.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-8mvw-22r7-w6fq/GHSA-8mvw-22r7-w6fq.json"}}],"schema_version":"1.9.0"}