{"id":"CVE-2013-0162","aliases":["CVE-2013-0162","GHSA-8mvw-22r7-w6fq"],"related":[],"kind":"vulnerability","state":"published","title":"ruby_parser allows local users to overwrite arbitrary files via symlink attack on temporary file with predictable name","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La función diff_pp en lib/gauntlet_rubyparser.rb en ruby_parser gem v3.1.1 y anteriores para Ruby, permite a usuarios locales sobrescribir archivos arbitrarios a través de un ataque de enlace simbólico sobre un archivo temporal con un nombre predecible en /tmp.","source":"nvd"}],"published":"2013-03-01T02:00:00.000Z","modified":"2026-06-16T23:48:52.773Z","severity":{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","score":2.1,"rating":"LOW"}],"cwes":["CWE-264","CWE-377"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.2","status":"affected","fixed":"3.1.2"}],"ecosystem":"RubyGems","package":"ruby_parser","purl":"pkg:gem/ruby_parser","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.1.1"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.1"},{"status":"affected","version":"2.0.2"},{"status":"affected","version":"2.0.3"},{"status":"affected","version":"2.0.4"},{"status":"affected","version":"2.0.5"},{"status":"affected","version":"2.0.6"},{"status":"affected","version":"2.1.0"},{"status":"affected","version":"2.2.0"},{"status":"affected","version":"2.3.0"},{"status":"affected","version":"2.3.1"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0.a1"},{"status":"affected","version":"3.0.0.a2"},{"status":"affected","version":"3.0.0.a3"},{"status":"affected","version":"3.0.0.a4"},{"status":"affected","version":"3.0.0.a5"},{"status":"affected","version":"3.0.0.a6"},{"status":"affected","version":"3.0.0.a7"},{"status":"affected","version":"3.0.0.a8"},{"status":"affected","version":"3.0.0.a9"},{"status":"affected","version":"3.0.0.a10"},{"status":"affected","version":"3.0.1"},{"status":"affected","version":"3.0.2"},{"status":"affected","version":"3.0.3"},{"status":"affected","version":"3.0.4"},{"status":"affected","version":"3.1.0"}],"vendor":"ryan_davis","product":"ruby_parser","cpe":"cpe:2.3:a:ryan_davis:ruby_parser:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=892806","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0548.html","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0544.html","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-0162","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/seattlerb/ruby_parser/commit/506c7e13cff6f8715385fa8488b621028b4ad280","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/seattlerb/ruby_parser/commit/c35acd878d50a8e4ea35933e3fbdc493421d422c","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/errata/RHSA-2013:0544","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/errata/RHSA-2013:0582","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/security/cve/CVE-2013-0162","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby_parser/CVE-2013-0162.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/seattlerb/ruby_parser","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2013-0162","url":"https://www.cve.org/CVERecord?id=CVE-2013-0162","licence":"CVE Terms of Use","modified":"2024-08-06T14:18:09.378Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8mvw-22r7-w6fq","url":"https://github.com/advisories/GHSA-8mvw-22r7-w6fq","licence":"CC-BY-4.0","modified":"2024-11-29T05:40:03.993Z"},{"source":"nvd","name":"NVD","id":"CVE-2013-0162","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-0162","licence":"Public domain","modified":"2026-06-16T23:48:52.773Z"}],"updatedAt":"2026-11-25T22:57:15.501Z","epss":{"score":0.00371,"percentile":0.33085,"date":"2026-12-01T12:00:22.000Z"}}