-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2013.1070
                Moderate: rubygem-passenger security update
                               6 August 2013

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           rubygem-passenger
Publisher:         Red Hat
Operating System:  Red Hat
                   Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Denial of Service               -- Existing Account
                   Execute Arbitrary Code/Commands -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2013-4136 CVE-2013-2119 

Original Bulletin: 
   https://rhn.redhat.com/errata/RHSA-2013-1136.html

Comment: This advisory references vulnerabilities in products which run on 
         platforms other than Red Hat. It is recommended that administrators
         running rubygem-passenger check for an updated version of the 
         software for their operating system.

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   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 <secalert@redhat.com>.  More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2013 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFR/9FWXlSAg2UNWIIRAjAlAJ9HkqI05eg3Y/cUnx2XdFoyb+mjCwCeNORH
gqfvObO/JKHc3PWnidY3UVM=
=Eq2G
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBUgBAtxLndAQH1ShLAQJUvhAAvJLZjUYVOkZ62TkzrS8W6ptaBWG2MxYZ
TeJIfyP0NhCZQJ2JadQt+eTjg1caeD8/8aKKJWv3ticDnAt3Y/z++HvcyzGmq1VO
NHJUX5QpjsJMuRMsMckNp39YOvaN5QhU0s2/cW+wTz444IPRoOOA7Xc2BdVy9U1K
Xy0P3xThZEW65QPXxQX+CMUALgBy0oXT+2L9NJGO9rGWsu+n7D9veNvO+qKVFwhX
f1oniKg3LC9HtwoiJA1fnrRi1/SAWAVDJ4QWQgMANPwReSiXFtGiXSymA0nmfJlw
UqZ1we0fewGfrctLfoNzmlSctAWlr/wbZA0QH7Qc5YvQU5VMC2GlV5vPwPZ2APS0
L6aEMfl2mUqCY/9x0FhUI0f4JEs3Y2IpPSyx+hiDXfCRXmTPTcBNDraaguN2V4Fh
/faSUCY1pQPfxUcW0Us3wkhY+CrU1bUFGuHqaRPGThN40BeDtr8rAOJUtZUUFU2A
3pDsYibL/B31Er/n4ObXm1ImdQpmO+yW5gU1vf+TNYUJfa8LF2Lla9lZW63aHc0p
GmZa3QYhycH4/JK7SQ8pk9kzrcKyWZinXk0fB3XroPu9sonageVLBZieHdsNo/u8
q0VRHrwz39T05C8DkJDqjgmIIKY7U5x/okykTl7BUJKp28zYEdQPwOwEsle6ZR/h
pg2IIy+axAo=
=/dli
-----END PGP SIGNATURE-----