Red Hat: 2013:1136-01: rubygem-passenger: Moderate Advisory
Posted by Benjamin D. Thomas   
RedHat Linux Updated rubygem-passenger packages that fix two security issues are now available for Red Hat OpenShift Enterprise 1.2.2. The Red Hat Security Response Team has rated this update as having moderate [More...]
=====================================================================
                   Red Hat Security Advisory

Synopsis:          Moderate: rubygem-passenger security update
Advisory ID:       RHSA-2013:1136-01
Product:           Red Hat OpenShift Enterprise
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2013-1136.html
Issue date:        2013-08-05
CVE Names:         CVE-2013-2119 CVE-2013-4136 
=====================================================================

1. Summary:

Updated rubygem-passenger packages that fix two security issues are now
available for Red Hat OpenShift Enterprise 1.2.2.

The Red Hat Security Response Team has rated this update as having moderate
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.

2. Relevant releases/architectures:

RHOSE Infrastructure 2.1 - noarch, x86_64
RHOSE Node 1.2 - noarch, x86_64

3. Description:

rubygem-passenger is a web server for Ruby, Python and Node.js
applications.

The rubygem-passenger gem created and re-used temporary directories and
files in an insecure fashion. A local attacker could use these flaws to
conduct a denial of service attack, take over the operation of the
application or, potentially, execute arbitrary code with the privileges of
the user running rubygem-passenger. (CVE-2013-2119, CVE-2013-4136)

Note: By default, OpenShift Enterprise uses polyinstantiation (per user)
for the /tmp/ directory, thereby minimizing the risk and impact of
exploitation by local attackers of both CVE-2013-2119 and CVE-2013-4136.

The CVE-2013-2119 issue was discovered by Michael Scherer of the Red Hat
Regional IT team.

The following packages are included with this update as dependencies of the
updated Ruby 1.8 passenger packages:

rubygem-spruz-0.2.5-4.el6op
rubygem-file-tail-1.0.5-4.el6op

Users of Red Hat OpenShift Enterprise 1.2.2 are advised to upgrade to
these updated packages, which correct these issues. After installing the
updated packages, manual action is required before the update takes effect.
Refer to the Solution section for details.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/site/articles/11258

Manual action is required for this update to take effect. In order for the
updated passenger packages to be loaded by Ruby applications in the PaaS,
the applications must be restarted with oo-admin-ctl-gears. One way to
accomplish this is by running the following command, as a single line
without the line break, on all OpenShift Nodes:

for rubyapp in `ls -d /var/lib/openshift/*/ruby |
cut -f5 -d/`; do oo-admin-ctl-gears restartgear $rubyapp; done

If there are no Ruby applications on a Node it will simply fail with the
message "No such file or directory". Another option is to run the
following on all OpenShift Nodes; however, it will result in non-Ruby
applications also being restarted:

oo-admin-ctl-gears restartall

(Note that without the manual action, if a user attempts to restart their
Ruby application via the rhc command line, it will fail to start with a
"Passenger could not be initialized..." error.)

5. Bugs fixed (http://bugzilla.redhat.com/):

892813 - CVE-2013-2119 rubygem-passenger: incorrect temporary file usage
985633 - CVE-2013-4136 rubygem-passenger: insecure temporary directory usage due to reuse of existing server instance directories

6. Package List:

RHOSE Infrastructure 2.1:

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/ruby193-rubygem-passenger-3.0.21-3.el6op.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/rubygem-file-tail-1.0.5-4.el6op.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/rubygem-passenger-3.0.21-3.el6op.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/rubygem-spruz-0.2.5-4.el6op.src.rpm

noarch:
rubygem-file-tail-1.0.5-4.el6op.noarch.rpm
rubygem-file-tail-doc-1.0.5-4.el6op.noarch.rpm
rubygem-spruz-0.2.5-4.el6op.noarch.rpm
rubygem-spruz-doc-0.2.5-4.el6op.noarch.rpm

x86_64:
mod_passenger-3.0.21-3.el6op.x86_64.rpm
ruby193-mod_passenger-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-debuginfo-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-devel-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-doc-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-native-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-native-libs-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-debuginfo-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-devel-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-doc-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-native-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-native-libs-3.0.21-3.el6op.x86_64.rpm

RHOSE Node 1.2:

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/ruby193-rubygem-passenger-3.0.21-3.el6op.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/rubygem-file-tail-1.0.5-4.el6op.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/rubygem-passenger-3.0.21-3.el6op.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHOSE/SRPMS/rubygem-spruz-0.2.5-4.el6op.src.rpm

noarch:
rubygem-file-tail-1.0.5-4.el6op.noarch.rpm
rubygem-file-tail-doc-1.0.5-4.el6op.noarch.rpm
rubygem-spruz-0.2.5-4.el6op.noarch.rpm
rubygem-spruz-doc-0.2.5-4.el6op.noarch.rpm

x86_64:
mod_passenger-3.0.21-3.el6op.x86_64.rpm
ruby193-mod_passenger-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-debuginfo-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-devel-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-doc-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-native-3.0.21-3.el6op.x86_64.rpm
ruby193-rubygem-passenger-native-libs-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-debuginfo-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-devel-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-doc-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-native-3.0.21-3.el6op.x86_64.rpm
rubygem-passenger-native-libs-3.0.21-3.el6op.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/#package

7. References:

https://www.redhat.com/security/data/cve/CVE-2013-2119.html
https://www.redhat.com/security/data/cve/CVE-2013-4136.html
https://access.redhat.com/security/updates/classification/#moderate

8. Contact:

The Red Hat security contact is .  More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2013 Red Hat, Inc.