Bug 892806 - (CVE-2013-0162) CVE-2013-0162 rubygem-ruby_parser: incorrect temporary file usage
CVE-2013-0162 rubygem-ruby_parser: incorrect temporary file usage
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 948101 892221 895189 895191 895192 896331 906437 1030772
Blocks: 767033 883745 892809 892883 906653 1028279
  Show dependency treegraph
Reported: 2013-01-07 16:48 EST by Vincent Danen
Modified: 2015-07-31 06:41 EDT (History)
21 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-04-23 09:26:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
CVE-2013-0162-rubygem-ruby_parser.patch (1.20 KB, patch)
2013-01-16 11:24 EST, Kurt Seifried
no flags Details | Diff

  None (edit)
Description Vincent Danen 2013-01-07 16:48:35 EST
Michael Scherer discovered that the ruby_parser ruby gem did not create temporary files in a safe manner.  In /usr/share/gems/gems/ruby_parser-2.0.4/lib/gauntlet_rubyparser.rb's diff_pp function it creates files as /tmp/a.[pid] and /tmp/b.[pid] which can be predicted and used for either a denial of service (file cannot be overwritten), or to change the contents of a files that are writable.

The initial report is in bug #892221.
Comment 1 Kurt Seifried 2013-01-09 01:19:29 EST
Sent email about setting a CRD.
Comment 7 Kurt Seifried 2013-01-16 11:24:35 EST
Created attachment 679696 [details]
Comment 12 Murray McAllister 2013-02-13 03:54:08 EST

This issue was discovered by Michael Scherer of the Red Hat Regional IT team.
Comment 15 Vincent Danen 2013-02-21 13:27:59 EST
Upstream had been notified as per comment #1 but apparently there was no response.  Upstream version 3.1.1 is still vulnerable (verified via download and on github).
Comment 16 errata-xmlrpc 2013-02-21 14:05:23 EST
This issue has been addressed in following products:

  CloudForms for RHEL 6

Via RHSA-2013:0548 https://rhn.redhat.com/errata/RHSA-2013-0548.html
Comment 17 errata-xmlrpc 2013-02-21 14:21:22 EST
This issue has been addressed in following products:

  Red Hat Subscription Asset Manager 1.2

Via RHSA-2013:0544 https://rhn.redhat.com/errata/RHSA-2013-0544.html
Comment 18 errata-xmlrpc 2013-02-28 14:08:43 EST
This issue has been addressed in following products:

  RHEL 6 Version of OpenShift Enterprise

Via RHSA-2013:0582 https://rhn.redhat.com/errata/RHSA-2013-0582.html
Comment 19 Vincent Danen 2013-04-03 22:00:40 EDT
Created rubygem-ruby_parser tracking bugs for this issue

Affects: epel-all [bug 948101]

Note You need to log in before you can comment on or make changes to this bug.