CVE-2013-0162 json
ruby_parser allows local users to overwrite arbitrary files via symlink attack on temporary file with predictable name
published 13y ago modified 4mo ago also GHSA-8mvw-22r7-w6fq , EUVD-2022-3204
- cvss
- 2.1
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 31%
- public exploits
- 0
- none known
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.
Patch / fix
- rubygems ruby_parser 3.1.2
- php openshift 1 5.3.3-22.el6
- graphviz openshift 1 2.26.0-10.el6
- php-imap openshift 1 5.3.3-22.el6
- php-bcmath openshift 1 5.3.3-22.el6
- graphviz-gd openshift 1 2.26.0-10.el6
- php-process openshift 1 5.3.3-22.el6
- php-mbstring openshift 1 5.3.3-22.el6
- ruby193-ruby openshift 1 1.9.3.327-25.el6
red hat advisories RHSA-2013:0582
Is CVE-2013-0162 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2013-0162 updated cvss 2.1
rubygem-ruby_parser: incorrect temporary file usage
-
Red Hat Satellite 6 ruby193-rubygem-ruby_parseraffected: no fix available
-
Red Hat CloudForms Cloud Engine for RHEL 6 Server rubygem-rdoc 3.8-6.el6cf, rubygem-rack 1.3.0-3.el6cf, rubygem-shoulda 2.11.3-5.el6cf, rubygem-delayed_job 2.1.4-3.el6cf, rubygem-rspec-rails 2.6.1-7.el6cf, rubygem-ruby_parser 2.0.4-6.el6cf, +4 more Red Hat CloudForms System Engine for RHEL 6 Server rubygem-rdoc 3.8-6.el6cf, rubygem-rack 1.3.0-3.el6cf, rubygem-delayed_job 2.1.4-3.el6cf, rubygem-ruby_parser 2.0.4-6.el6cf, rubygem-rails_warden 0.5.5-2.el6cf, ruby-nokogiri 1.5.0-0.9.beta4.el6cf, +2 morefixed: vendor fix RHSA-2013:0548
-
Red Hat OpenShift Enterprise Infrastructure graphviz 2.26.0-10.el6, graphviz-gd 2.26.0-10.el6, rubygem-bson 1.8.1-2.el6op, graphviz-ruby 2.26.0-10.el6, rubygem-mongo 1.8.1-2.el6op, ruby193-ruby 1.9.3.327-25.el6, +25 more Red Hat OpenShift Enterprise JBoss EAP add-on openshift-origin-cartridge-jbosseap-6.0 1.0.4-1.el6op Red Hat OpenShift Enterprise Node php 5.3.3-22.el6, php-imap 5.3.3-22.el6, php-bcmath 5.3.3-22.el6, php-process 5.3.3-22.el6, php-mbstring 5.3.3-22.el6, rubygem-bson 1.8.1-2.el6op, +32 morefixed: vendor fix RHSA-2013:0582
-
Red Hat Subscription Asset Manager for RHEL 6 Server quartz 2.1.5-4.el6_3, puppet 2.6.17-2.el6cf, katello 1.2.1-15h.el6_3, lucene3 3.6.1-10h.el6_3, candlepin 0.7.23-1.el6_3, thumbslug 0.0.28-1.el6_3, +27 morefixed: vendor fix RHSA-2013:0544
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | ruby_parser | >=2.0.2, <3.1.2 |
3.1.2 |
Classification
References
-
bugzilla.redhat.com
/show_bug.cgi?id=892806
web, patch
-
github.com
/seattlerb/ruby_parser/commit/506c7e13cff6f8715385fa8488b621028b4ad280
web
-
github.com
/seattlerb/ruby_parser/commit/c35acd878d50a8e4ea35933e3fbdc493421d422c
web
-
rhn.redhat.com
/errata/RHSA-2013-0548.html
vendor-advisory, web
-
rhn.redhat.com
/errata/RHSA-2013-0544.html
vendor-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2013-0162
advisory
-
access.redhat.com
/errata/RHSA-2013:0544
web
-
access.redhat.com
/errata/RHSA-2013:0582
web
-
access.redhat.com
/security/cve/CVE-2013-0162
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/ruby_parser/CVE-2013-0162.yml
web
-
github.com
/seattlerb/ruby_parser
package
Sources
- CVE List CVE-2013-0162
- GitHub Advisory GHSA-8mvw-22r7-w6fq
- NVD CVE-2013-0162
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.