ESB-2018.0506 - [Win][UNIX/Linux] RubyGems: Execute arbitrary code/commands - Existing account 2018-02-20

Printable version
PGP/GPG verifiable version

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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

                               ESB-2018.0506
                         RubyGems security updates
                             20 February 2018

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

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

Product:           RubyGems
Publisher:         ruby-lang.org
Operating System:  UNIX variants (UNIX, Linux, OSX)
                   Windows
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
                   Cross-site Scripting            -- Existing Account
                   Access Confidential Data        -- Existing Account
                   Reduced Security                -- Existing Account
Resolution:        Patch/Upgrade

Original Bulletin: 
   https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities-in-rubygems/

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

Multiple vulnerabilities in RubyGems

Posted by usa on 17 Feb 2018

There are multiple vulnerabilities in RubyGems bundled by Ruby. It is reported 
at the official blog of RubyGems.

Details

The following vulnerabilities have been reported.

    Prevent path traversal when writing to a symlinked basedir outside of the root.
    Fix possible Unsafe Object Deserialization Vulnerability in gem owner.
    Strictly interpret octal fields in tar headers.
    Raise a security error when there are duplicate files in a package.
    Enforce URL validation on spec homepage attribute.
    Mitigate XSS vulnerability in homepage attribute when displayed via gem server.
    Prevent Path Traversal issue during gem installation.

It is strongly recommended for Ruby users to take one of the following workarounds 
as soon as possible.

Affected Versions

    Ruby 2.2 series: 2.2.9 and earlier
    Ruby 2.3 series: 2.3.6 and earlier
    Ruby 2.4 series: 2.4.3 and earlier
    Ruby 2.5 series: 2.5.0 and earlier
    prior to trunk revision 62422

Workarounds

RubyGems 2.7.6 or later includes the fix for the vulnerabilities, so upgrade 
RubyGems to the latest version.

gem update --system

If you can’t upgrade RubyGems, you can apply the following patches as a workaround.

    for Ruby 2.2.9
    for Ruby 2.3.6
    for Ruby 2.4.3
    for Ruby 2.5.0

About the trunk, update to the latest revision.
Credits

This report is based on the official blog of RubyGems.
History

    Originally published at 2018-02-17 03:00:00 UTC

- --------------------------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:

        https://www.auscert.org.au/bulletins/

===========================================================================
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

iQIVAwUBWovOGox+lLeg9Ub1AQieHA/9Htt7W9yXqrm25qsjuons9ZRxpBB3A3X9
hF6xdCKR9lkMVHU2WVYsg1k9vNhfyuzGYJ7GenSubaKfFe6Db0WDBEZZ4SZcE++w
/nGIV6aKMd0973M8Bwfnl42uAjdkfXAbexS466HDrcfC68e+3HlX1UJjJ3RoUHse
GB82glogX1D0M6i7bllqPk9bo14nPtGc7UTjW9ioLIg6aMoQ9mI00ResszP+N+Bl
jOR43XmvGWpXPDyg/kKuPPFq3nd+5WzDs3Z4s1fEPZQmRGIqwga6t705NDcYgWtR
xsoHjaPokxHZKHPRofe762AhY+DSkde3pX2sPRjuQFe6BinZeAI7ReZv95XEOjSL
zW34Mq/17U9HD3zjP5ZdzVSnWODCKZdmVmwio7iwKQxd81NzLYK77RT9ulbMUU+y
i/ry7tnLrPr1nOvw7p2cdCZQlul1t37+jqXuYrt6Uu4jL2pu8AL0MeEj3N4sGo+0
o/XglbighUFuZEt68Q+WEx0P47MQkWAPvSkzBZIoX4WAVUKgsTip9uYnHhhaN/MX
E2WillB02qunfjSwXnSVAdiGXK7/VHNCqqrtlUtm5kbwtAC9s7QPLEZxIXOjw/YR
dK4Nm8q1Cackz8Q7Fw8UaPdUGnFEn3f5fsn4ueiCQ98XsrleaNu7m4xSXTO7F4cX
IjovSKJUTRc=
=+sjb
-----END PGP SIGNATURE-----

« Back to bulletins