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

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

                               ESB-2017.2067
                   Important: mercurial security update
                              18 August 2017

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

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

Product:           mercurial
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 7
                   Red Hat Enterprise Linux WS/Desktop 7
                   Linux variants
Impact/Access:     Execute Arbitrary Code/Commands -- Remote with User Interaction
                   Modify Arbitrary Files          -- Remote with User Interaction
Resolution:        Patch/Upgrade
CVE Names:         CVE-2017-1000116 CVE-2017-1000115 

Original Bulletin: 
   https://access.redhat.com/errata/RHSA-2017:2489

Comment: This advisory references vulnerabilities in products which run on 
         platforms other than Red Hat. It is recommended that administrators
         running mercurial 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:          Important: mercurial security update
Advisory ID:       RHSA-2017:2489-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://access.redhat.com/errata/RHSA-2017:2489
Issue date:        2017-08-17
CVE Names:         CVE-2017-1000115 CVE-2017-1000116 
=====================================================================

1. Summary:

An update for mercurial is now available for Red Hat Enterprise Linux 7.

Red Hat Product Security has rated this update as having a security impact
of Important. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available for each vulnerability
from the CVE link(s) in the References section.

2. Relevant releases/architectures:

Red Hat Enterprise Linux Client Optional (v. 7) - x86_64
Red Hat Enterprise Linux ComputeNode Optional (v. 7) - x86_64
Red Hat Enterprise Linux Server (v. 7) - aarch64, ppc64, ppc64le, s390x, x86_64
Red Hat Enterprise Linux Server Optional (v. 7) - aarch64, ppc64, ppc64le, s390x, x86_64
Red Hat Enterprise Linux Workstation (v. 7) - x86_64
Red Hat Enterprise Linux Workstation Optional (v. 7) - x86_64

3. Description:

Mercurial is a fast, lightweight source control management system designed
for efficient handling of very large distributed projects.

Security Fix(es):

* A vulnerability was found in the way Mercurial handles path auditing and
caches the results. An attacker could abuse a repository with a series of
commits mixing symlinks and regular files/directories to trick Mercurial
into writing outside of a given repository. (CVE-2017-1000115)

* A shell command injection flaw related to the handling of "ssh" URLs has
been discovered in Mercurial. This can be exploited to execute shell
commands with the privileges of the user running the Mercurial client, for
example, when performing a "checkout" or "update" action on a
sub-repository within a malicious repository or a legitimate repository
containing a malicious commit. (CVE-2017-1000116)

Red Hat would like to thank the Mercurial Security Team for reporting
CVE-2017-1000115 and the Subversion Team for reporting CVE-2017-1000116.

4. Solution:

For details on how to apply this update, which includes the changes
described in this advisory, refer to:

https://access.redhat.com/articles/11258

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

1479915 - CVE-2017-1000116 mercurial: command injection on clients through malicious ssh URLs
1480330 - CVE-2017-1000115 Mercurial: pathaudit: path traversal via symlink

6. Package List:

Red Hat Enterprise Linux Client Optional (v. 7):

Source:
mercurial-2.6.2-8.el7_4.src.rpm

x86_64:
emacs-mercurial-2.6.2-8.el7_4.x86_64.rpm
emacs-mercurial-el-2.6.2-8.el7_4.x86_64.rpm
mercurial-2.6.2-8.el7_4.x86_64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.x86_64.rpm
mercurial-hgk-2.6.2-8.el7_4.x86_64.rpm

Red Hat Enterprise Linux ComputeNode Optional (v. 7):

Source:
mercurial-2.6.2-8.el7_4.src.rpm

x86_64:
emacs-mercurial-2.6.2-8.el7_4.x86_64.rpm
emacs-mercurial-el-2.6.2-8.el7_4.x86_64.rpm
mercurial-2.6.2-8.el7_4.x86_64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.x86_64.rpm
mercurial-hgk-2.6.2-8.el7_4.x86_64.rpm

Red Hat Enterprise Linux Server (v. 7):

Source:
mercurial-2.6.2-8.el7_4.src.rpm

aarch64:
mercurial-2.6.2-8.el7_4.aarch64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.aarch64.rpm

ppc64:
mercurial-2.6.2-8.el7_4.ppc64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.ppc64.rpm

ppc64le:
mercurial-2.6.2-8.el7_4.ppc64le.rpm
mercurial-debuginfo-2.6.2-8.el7_4.ppc64le.rpm

s390x:
mercurial-2.6.2-8.el7_4.s390x.rpm
mercurial-debuginfo-2.6.2-8.el7_4.s390x.rpm

x86_64:
mercurial-2.6.2-8.el7_4.x86_64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.x86_64.rpm

Red Hat Enterprise Linux Server Optional (v. 7):

aarch64:
emacs-mercurial-2.6.2-8.el7_4.aarch64.rpm
emacs-mercurial-el-2.6.2-8.el7_4.aarch64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.aarch64.rpm
mercurial-hgk-2.6.2-8.el7_4.aarch64.rpm

ppc64:
emacs-mercurial-2.6.2-8.el7_4.ppc64.rpm
emacs-mercurial-el-2.6.2-8.el7_4.ppc64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.ppc64.rpm
mercurial-hgk-2.6.2-8.el7_4.ppc64.rpm

ppc64le:
emacs-mercurial-2.6.2-8.el7_4.ppc64le.rpm
emacs-mercurial-el-2.6.2-8.el7_4.ppc64le.rpm
mercurial-debuginfo-2.6.2-8.el7_4.ppc64le.rpm
mercurial-hgk-2.6.2-8.el7_4.ppc64le.rpm

s390x:
emacs-mercurial-2.6.2-8.el7_4.s390x.rpm
emacs-mercurial-el-2.6.2-8.el7_4.s390x.rpm
mercurial-debuginfo-2.6.2-8.el7_4.s390x.rpm
mercurial-hgk-2.6.2-8.el7_4.s390x.rpm

x86_64:
emacs-mercurial-2.6.2-8.el7_4.x86_64.rpm
emacs-mercurial-el-2.6.2-8.el7_4.x86_64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.x86_64.rpm
mercurial-hgk-2.6.2-8.el7_4.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 7):

Source:
mercurial-2.6.2-8.el7_4.src.rpm

x86_64:
mercurial-2.6.2-8.el7_4.x86_64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.x86_64.rpm

Red Hat Enterprise Linux Workstation Optional (v. 7):

x86_64:
emacs-mercurial-2.6.2-8.el7_4.x86_64.rpm
emacs-mercurial-el-2.6.2-8.el7_4.x86_64.rpm
mercurial-debuginfo-2.6.2-8.el7_4.x86_64.rpm
mercurial-hgk-2.6.2-8.el7_4.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/

7. References:

https://access.redhat.com/security/cve/CVE-2017-1000115
https://access.redhat.com/security/cve/CVE-2017-1000116
https://access.redhat.com/security/updates/classification/#important

8. Contact:

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

Copyright 2017 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFZlXnjXlSAg2UNWIIRApcuAKCgY6cGCsoExZKsCiI3d5rzemskjQCfTsp8
5GtojZXNp+isCw/HeXD/u4E=
=UOvG
- -----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

iQIVAwUBWZYjk4x+lLeg9Ub1AQi2tg//bx33Zv9ur4SLu1k6nLI0YNZbhnJuNXbU
aWchP1sQmkHTixF+lGfrULBqVOifIC70QJ+M45uuHrysmGcCojHaCiYhqxXDCBWn
0glgya7e7izfmCvdGidXK7702AAu9KI7UYB9pw2UJl6QraC4in3RJgfj/kCS3AgX
IzYv9cmW+Ij6MOH4qPpqQ3YlPFEEdb2N0LwCCCNPzGajrZNSmLNDp/COMGse3Ujt
BE167ulzmmw8cT7IC/mkSCQGbi/tJ1ilgSLx4NfQ91BK5AQ1Cc0QbuDFJMyrplF9
2kX4H86O16ONbAAxRJyqVTWdbMHZEI9ic3/KUtf7eZxDgnj0Z6V3syKSkzwUuWBG
7ytckm+LP2NeZ8DEEC+x6zdnhR6VIALQYGNgwn2eS5Xum/APVTkkNUob/tdFQd+g
0mdMuZAWLx8PmBmKLgbLqDABffvBj0i07ZuO9Qn1b5f+AQta2bqhZBsqOl20U3Z/
8HPF7qUnijZlMnI1PdgaSh95qn73sLXPKyKF8zyljJh7FCXMal3ZsSMSbd3EUwy3
Io0EHwDjq0FsuvWZBuiQ5cM54NDLoFvP83eoZVz3mAFRdJ6Ng8vn/XEt9uPlohUd
5Ymrnqoq/d4L99nnUdbkm39ipfcggRWhDhstRk608nR5YMn4yQ6C6Q/esQiR2+ol
Ad+3a8QXM/M=
=sHMb
-----END PGP SIGNATURE-----