RedHat: RHSA-2013-1136:01 Moderate: rubygem-passenger security update
Summary
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.
Summary
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.)
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
Package List
RHOSE Infrastructure 2.1:
Source:
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:
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
Topic
Updated rubygem-passenger packages that fix two security issues are nowavailable for Red Hat OpenShift Enterprise 1.2.2.The Red Hat Security Response Team has rated this update as having moderatesecurity impact. Common Vulnerability Scoring System (CVSS) base scores,which give detailed severity ratings, are available for each vulnerabilityfrom the CVE links in the References section.
Topic
Relevant Releases Architectures
RHOSE Infrastructure 2.1 - noarch, x86_64
RHOSE Node 1.2 - noarch, x86_64
Bugs Fixed
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