copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2014.2413 - [UNIX/Linux][RedHat] mailx: Execute arbitrary code/commands - Existing account

Date: 17 December 2014
References: ESB-2014.2415  

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

                               ESB-2014.2413
                      Moderate: mailx security update
                             17 December 2014

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

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

Product:           mailx
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 7
                   Red Hat Enterprise Linux WS/Desktop 7
                   Red Hat Enterprise Linux Server 6
                   Red Hat Enterprise Linux WS/Desktop 6
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2014-7844 CVE-2004-2771 

Original Bulletin: 
   https://rhn.redhat.com/errata/RHSA-2014-1999.html

Comment: This advisory references vulnerabilities in products which run on 
         platforms other than Red Hat. It is recommended that administrators
         running mailx 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: mailx security update
Advisory ID:       RHSA-2014:1999-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2014-1999.html
Issue date:        2014-12-16
CVE Names:         CVE-2004-2771 CVE-2014-7844 
=====================================================================

1. Summary:

Updated mailx packages that fix two security issues are now available for
Red Hat Enterprise Linux 6 and 7.

Red Hat Product Security 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:

Red Hat Enterprise Linux Client (v. 7) - x86_64
Red Hat Enterprise Linux ComputeNode (v. 7) - x86_64
Red Hat Enterprise Linux Desktop (v. 6) - i386, x86_64
Red Hat Enterprise Linux HPC Node (v. 6) - x86_64
Red Hat Enterprise Linux Server (v. 6) - i386, ppc64, s390x, x86_64
Red Hat Enterprise Linux Server (v. 7) - ppc64, s390x, x86_64
Red Hat Enterprise Linux Workstation (v. 6) - i386, x86_64
Red Hat Enterprise Linux Workstation (v. 7) - x86_64

3. Description:

The mailx packages contain a mail user agent that is used to manage mail
using scripts.

A flaw was found in the way mailx handled the parsing of email addresses.
A syntactically valid email address could allow a local attacker to cause
mailx to execute arbitrary shell commands through shell meta-characters and
the direct command execution functionality. (CVE-2004-2771, CVE-2014-7844)

Note: Applications using mailx to send email to addresses obtained from
untrusted sources will still remain vulnerable to other attacks if they
accept email addresses which start with "-" (so that they can be confused
with mailx options). To counteract this issue, this update also introduces
the "--" option, which will treat the remaining command line arguments as
email addresses.

All mailx users are advised to upgrade to these updated packages, which
contain backported patches to correct these issues.

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/articles/11258

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

1162783 - CVE-2004-2771 CVE-2014-7844 mailx: command execution flaw

6. Package List:

Red Hat Enterprise Linux Desktop (v. 6):

Source:
mailx-12.4-8.el6_6.src.rpm

i386:
mailx-12.4-8.el6_6.i686.rpm
mailx-debuginfo-12.4-8.el6_6.i686.rpm

x86_64:
mailx-12.4-8.el6_6.x86_64.rpm
mailx-debuginfo-12.4-8.el6_6.x86_64.rpm

Red Hat Enterprise Linux HPC Node (v. 6):

Source:
mailx-12.4-8.el6_6.src.rpm

x86_64:
mailx-12.4-8.el6_6.x86_64.rpm
mailx-debuginfo-12.4-8.el6_6.x86_64.rpm

Red Hat Enterprise Linux Server (v. 6):

Source:
mailx-12.4-8.el6_6.src.rpm

i386:
mailx-12.4-8.el6_6.i686.rpm
mailx-debuginfo-12.4-8.el6_6.i686.rpm

ppc64:
mailx-12.4-8.el6_6.ppc64.rpm
mailx-debuginfo-12.4-8.el6_6.ppc64.rpm

s390x:
mailx-12.4-8.el6_6.s390x.rpm
mailx-debuginfo-12.4-8.el6_6.s390x.rpm

x86_64:
mailx-12.4-8.el6_6.x86_64.rpm
mailx-debuginfo-12.4-8.el6_6.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 6):

Source:
mailx-12.4-8.el6_6.src.rpm

i386:
mailx-12.4-8.el6_6.i686.rpm
mailx-debuginfo-12.4-8.el6_6.i686.rpm

x86_64:
mailx-12.4-8.el6_6.x86_64.rpm
mailx-debuginfo-12.4-8.el6_6.x86_64.rpm

Red Hat Enterprise Linux Client (v. 7):

Source:
mailx-12.5-12.el7_0.src.rpm

x86_64:
mailx-12.5-12.el7_0.x86_64.rpm
mailx-debuginfo-12.5-12.el7_0.x86_64.rpm

Red Hat Enterprise Linux ComputeNode (v. 7):

Source:
mailx-12.5-12.el7_0.src.rpm

x86_64:
mailx-12.5-12.el7_0.x86_64.rpm
mailx-debuginfo-12.5-12.el7_0.x86_64.rpm

Red Hat Enterprise Linux Server (v. 7):

Source:
mailx-12.5-12.el7_0.src.rpm

ppc64:
mailx-12.5-12.el7_0.ppc64.rpm
mailx-debuginfo-12.5-12.el7_0.ppc64.rpm

s390x:
mailx-12.5-12.el7_0.s390x.rpm
mailx-debuginfo-12.5-12.el7_0.s390x.rpm

x86_64:
mailx-12.5-12.el7_0.x86_64.rpm
mailx-debuginfo-12.5-12.el7_0.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 7):

Source:
mailx-12.5-12.el7_0.src.rpm

x86_64:
mailx-12.5-12.el7_0.x86_64.rpm
mailx-debuginfo-12.5-12.el7_0.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-2004-2771
https://access.redhat.com/security/cve/CVE-2014-7844
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 2014 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFUkJYRXlSAg2UNWIIRAk0bAJoDvlL5ZD0oq+gJIgYsmU9QFvNGIQCgnXUv
DXtMMeMpEPGIAEgO56yd46E=
=ozlS
- -----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

iQIVAwUBVJDB2xLndAQH1ShLAQL9bxAAlzpXXidyP5cCQLgQnUKA+vzhZQhG0fJR
EsN1vvhRI+e7f23x757pV3B5t9ugg3MJnYmcKyRYSnnQEjSqbgKYu0sqF9GKXaC4
1AxdAvLaxqWxXatV0Q8xrUSinSh/77uA4SpS06chNaWOIBBzM2Dkpw9sFdsRQtX2
hIXW2WBUMFdyiwnNQlV2gnJGpQl9vaoFQDta1E/fAOVS1XQ1YoMI8X3hzof0yZdN
OvsksaNnkdV2IcTB7s4ZR1YPDWP5aoHmnbrNh3x9zkzT2V0ZBEpoDeiynIzNRPo8
yZAZfdwjw30VkIk1+AQArmqP5HokapnJNcJOrnXrnKRHaMFT6TMnf1TiSMuxmtbU
VZvalLNmBUQHDyTBLKqE3clA1tGenuVpt92zZ9DWAqrbmAlQhXPLRTGhYQMyrub5
zL/aO/L7v+bIf8Wblpt90jwjV0xdb/QqcuQtbOWSybVokjZVdH7a4xUrWxoUBYPI
V2UbRKstGnXwqz6G5hCcOZcs/ndnyNbuoiHqeoJBSUUg/sdvs2nSXZdTF1Q0C+Y7
taeP+e0pjBUTbbCjfaFf+7CddYE8KhCUN+tlwYBi1gsrrJnq9zDkyha3R5orahr0
oMcsQUWLtJq3aQQf8DLhdesBDwFXGrdNGn4MIxMRmgpRmxWF7rHkSjHPVwbD0qnq
JuhdeWaNwWE=
=5SMr
-----END PGP SIGNATURE-----