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

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

                               ESB-2014.0288
                   Important: postgresql security update
                               5 March 2014

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

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

Product:           postgresql
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 5
                   Red Hat Enterprise Linux WS/Desktop 5
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
                   Increased Privileges            -- Existing Account
                   Denial of Service               -- Existing Account
                   Unauthorised Access             -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2014-0066 CVE-2014-0065 CVE-2014-0064
                   CVE-2014-0063 CVE-2014-0062 CVE-2014-0061
                   CVE-2014-0060  

Reference:         ESB-2014.0258
                   ESB-2014.0247
                   ESB-2014.0220

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

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

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

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Important: postgresql security update
Advisory ID:       RHSA-2014:0249-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2014-0249.html
Issue date:        2014-03-04
CVE Names:         CVE-2014-0060 CVE-2014-0061 CVE-2014-0062 
                   CVE-2014-0063 CVE-2014-0064 CVE-2014-0065 
                   CVE-2014-0066 
=====================================================================

1. Summary:

Updated postgresql packages that fix multiple security issues are now
available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having
Important 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:

RHEL Desktop Workstation (v. 5 client) - i386, x86_64
Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64
Red Hat Enterprise Linux Desktop (v. 5 client) - i386, x86_64

3. Description:

PostgreSQL is an advanced object-relational database management system
(DBMS).

Multiple stack-based buffer overflow flaws were found in the date/time
implementation of PostgreSQL. An authenticated database user could provide
a specially crafted date/time value that, when processed, could cause
PostgreSQL to crash or, potentially, execute arbitrary code with the
permissions of the user running PostgreSQL. (CVE-2014-0063)

Multiple integer overflow flaws, leading to heap-based buffer overflows,
were found in various type input functions in PostgreSQL. An authenticated
database user could possibly use these flaws to crash PostgreSQL or,
potentially, execute arbitrary code with the permissions of the user
running PostgreSQL. (CVE-2014-0064)

Multiple potential buffer overflow flaws were found in PostgreSQL.
An authenticated database user could possibly use these flaws to crash
PostgreSQL or, potentially, execute arbitrary code with the permissions of
the user running PostgreSQL. (CVE-2014-0065)

It was found that granting an SQL role to a database user in a PostgreSQL
database without specifying the "ADMIN" option allowed the grantee to
remove other users from their granted role. An authenticated database user
could use this flaw to remove a user from an SQL role which they were
granted access to. (CVE-2014-0060)

A flaw was found in the validator functions provided by PostgreSQL's
procedural languages (PLs). An authenticated database user could possibly
use this flaw to escalate their privileges. (CVE-2014-0061)

A race condition was found in the way the CREATE INDEX command performed
multiple independent lookups of a table that had to be indexed. An
authenticated database user could possibly use this flaw to escalate their
privileges. (CVE-2014-0062)

It was found that the chkpass extension of PostgreSQL did not check the
return value of the crypt() function. An authenticated database user could
possibly use this flaw to crash PostgreSQL via a null pointer dereference.
(CVE-2014-0066)

Red Hat would like to thank the PostgreSQL project for reporting these
issues. Upstream acknowledges Noah Misch as the original reporter of
CVE-2014-0060 and CVE-2014-0063, Heikki Linnakangas and Noah Misch as the
original reporters of CVE-2014-0064, Peter Eisentraut and Jozef Mlich as
the original reporters of CVE-2014-0065, Andres Freund as the original
reporter of CVE-2014-0061, Robert Haas and Andres Freund as the original
reporters of CVE-2014-0062, and Honza Horak and Bruce Momjian as the
original reporters of CVE-2014-0066.

All PostgreSQL users are advised to upgrade to these updated packages,
which contain backported patches to correct these issues. If the postgresql
service is running, it will be automatically restarted after installing
this update.

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

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

1065219 - CVE-2014-0060 postgresql: SET ROLE without ADMIN OPTION allows adding and removing group members
1065220 - CVE-2014-0061 postgresql: privilege escalation via procedural language validator functions
1065222 - CVE-2014-0062 postgresql: CREATE INDEX race condition possibly leading to privilege escalation
1065226 - CVE-2014-0063 postgresql: stack-based buffer overflow in datetime input/output
1065230 - CVE-2014-0064 postgresql: integer overflows leading to buffer overflows
1065235 - CVE-2014-0065 postgresql: possible buffer overflow flaws
1065236 - CVE-2014-0066 postgresql: NULL pointer dereference

6. Package List:

Red Hat Enterprise Linux Desktop (v. 5 client):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/postgresql-8.1.23-10.el5_10.src.rpm

i386:
postgresql-8.1.23-10.el5_10.i386.rpm
postgresql-contrib-8.1.23-10.el5_10.i386.rpm
postgresql-debuginfo-8.1.23-10.el5_10.i386.rpm
postgresql-docs-8.1.23-10.el5_10.i386.rpm
postgresql-libs-8.1.23-10.el5_10.i386.rpm
postgresql-python-8.1.23-10.el5_10.i386.rpm
postgresql-tcl-8.1.23-10.el5_10.i386.rpm

x86_64:
postgresql-8.1.23-10.el5_10.x86_64.rpm
postgresql-contrib-8.1.23-10.el5_10.x86_64.rpm
postgresql-debuginfo-8.1.23-10.el5_10.i386.rpm
postgresql-debuginfo-8.1.23-10.el5_10.x86_64.rpm
postgresql-docs-8.1.23-10.el5_10.x86_64.rpm
postgresql-libs-8.1.23-10.el5_10.i386.rpm
postgresql-libs-8.1.23-10.el5_10.x86_64.rpm
postgresql-python-8.1.23-10.el5_10.x86_64.rpm
postgresql-tcl-8.1.23-10.el5_10.x86_64.rpm

RHEL Desktop Workstation (v. 5 client):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/postgresql-8.1.23-10.el5_10.src.rpm

i386:
postgresql-debuginfo-8.1.23-10.el5_10.i386.rpm
postgresql-devel-8.1.23-10.el5_10.i386.rpm
postgresql-pl-8.1.23-10.el5_10.i386.rpm
postgresql-server-8.1.23-10.el5_10.i386.rpm
postgresql-test-8.1.23-10.el5_10.i386.rpm

x86_64:
postgresql-debuginfo-8.1.23-10.el5_10.i386.rpm
postgresql-debuginfo-8.1.23-10.el5_10.x86_64.rpm
postgresql-devel-8.1.23-10.el5_10.i386.rpm
postgresql-devel-8.1.23-10.el5_10.x86_64.rpm
postgresql-pl-8.1.23-10.el5_10.x86_64.rpm
postgresql-server-8.1.23-10.el5_10.x86_64.rpm
postgresql-test-8.1.23-10.el5_10.x86_64.rpm

Red Hat Enterprise Linux (v. 5 server):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/postgresql-8.1.23-10.el5_10.src.rpm

i386:
postgresql-8.1.23-10.el5_10.i386.rpm
postgresql-contrib-8.1.23-10.el5_10.i386.rpm
postgresql-debuginfo-8.1.23-10.el5_10.i386.rpm
postgresql-devel-8.1.23-10.el5_10.i386.rpm
postgresql-docs-8.1.23-10.el5_10.i386.rpm
postgresql-libs-8.1.23-10.el5_10.i386.rpm
postgresql-pl-8.1.23-10.el5_10.i386.rpm
postgresql-python-8.1.23-10.el5_10.i386.rpm
postgresql-server-8.1.23-10.el5_10.i386.rpm
postgresql-tcl-8.1.23-10.el5_10.i386.rpm
postgresql-test-8.1.23-10.el5_10.i386.rpm

ia64:
postgresql-8.1.23-10.el5_10.ia64.rpm
postgresql-contrib-8.1.23-10.el5_10.ia64.rpm
postgresql-debuginfo-8.1.23-10.el5_10.i386.rpm
postgresql-debuginfo-8.1.23-10.el5_10.ia64.rpm
postgresql-devel-8.1.23-10.el5_10.ia64.rpm
postgresql-docs-8.1.23-10.el5_10.ia64.rpm
postgresql-libs-8.1.23-10.el5_10.i386.rpm
postgresql-libs-8.1.23-10.el5_10.ia64.rpm
postgresql-pl-8.1.23-10.el5_10.ia64.rpm
postgresql-python-8.1.23-10.el5_10.ia64.rpm
postgresql-server-8.1.23-10.el5_10.ia64.rpm
postgresql-tcl-8.1.23-10.el5_10.ia64.rpm
postgresql-test-8.1.23-10.el5_10.ia64.rpm

ppc:
postgresql-8.1.23-10.el5_10.ppc.rpm
postgresql-8.1.23-10.el5_10.ppc64.rpm
postgresql-contrib-8.1.23-10.el5_10.ppc.rpm
postgresql-debuginfo-8.1.23-10.el5_10.ppc.rpm
postgresql-debuginfo-8.1.23-10.el5_10.ppc64.rpm
postgresql-devel-8.1.23-10.el5_10.ppc.rpm
postgresql-devel-8.1.23-10.el5_10.ppc64.rpm
postgresql-docs-8.1.23-10.el5_10.ppc.rpm
postgresql-libs-8.1.23-10.el5_10.ppc.rpm
postgresql-libs-8.1.23-10.el5_10.ppc64.rpm
postgresql-pl-8.1.23-10.el5_10.ppc.rpm
postgresql-python-8.1.23-10.el5_10.ppc.rpm
postgresql-server-8.1.23-10.el5_10.ppc.rpm
postgresql-tcl-8.1.23-10.el5_10.ppc.rpm
postgresql-test-8.1.23-10.el5_10.ppc.rpm

s390x:
postgresql-8.1.23-10.el5_10.s390x.rpm
postgresql-contrib-8.1.23-10.el5_10.s390x.rpm
postgresql-debuginfo-8.1.23-10.el5_10.s390.rpm
postgresql-debuginfo-8.1.23-10.el5_10.s390x.rpm
postgresql-devel-8.1.23-10.el5_10.s390.rpm
postgresql-devel-8.1.23-10.el5_10.s390x.rpm
postgresql-docs-8.1.23-10.el5_10.s390x.rpm
postgresql-libs-8.1.23-10.el5_10.s390.rpm
postgresql-libs-8.1.23-10.el5_10.s390x.rpm
postgresql-pl-8.1.23-10.el5_10.s390x.rpm
postgresql-python-8.1.23-10.el5_10.s390x.rpm
postgresql-server-8.1.23-10.el5_10.s390x.rpm
postgresql-tcl-8.1.23-10.el5_10.s390x.rpm
postgresql-test-8.1.23-10.el5_10.s390x.rpm

x86_64:
postgresql-8.1.23-10.el5_10.x86_64.rpm
postgresql-contrib-8.1.23-10.el5_10.x86_64.rpm
postgresql-debuginfo-8.1.23-10.el5_10.i386.rpm
postgresql-debuginfo-8.1.23-10.el5_10.x86_64.rpm
postgresql-devel-8.1.23-10.el5_10.i386.rpm
postgresql-devel-8.1.23-10.el5_10.x86_64.rpm
postgresql-docs-8.1.23-10.el5_10.x86_64.rpm
postgresql-libs-8.1.23-10.el5_10.i386.rpm
postgresql-libs-8.1.23-10.el5_10.x86_64.rpm
postgresql-pl-8.1.23-10.el5_10.x86_64.rpm
postgresql-python-8.1.23-10.el5_10.x86_64.rpm
postgresql-server-8.1.23-10.el5_10.x86_64.rpm
postgresql-tcl-8.1.23-10.el5_10.x86_64.rpm
postgresql-test-8.1.23-10.el5_10.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-2014-0060.html
https://www.redhat.com/security/data/cve/CVE-2014-0061.html
https://www.redhat.com/security/data/cve/CVE-2014-0062.html
https://www.redhat.com/security/data/cve/CVE-2014-0063.html
https://www.redhat.com/security/data/cve/CVE-2014-0064.html
https://www.redhat.com/security/data/cve/CVE-2014-0065.html
https://www.redhat.com/security/data/cve/CVE-2014-0066.html
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 2014 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFTFi5uXlSAg2UNWIIRAuD1AJwMViIK6H5OrweWJ6ZPWRhawPqipACfVj+T
aBJpy02d9zNDSx7vwqd5YU8=
=VtM0
- -----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

iQIVAwUBUxaHKBLndAQH1ShLAQJFjxAAp5cBOv6r0C3bBrMwz6w51BNPV1RXflqU
BNUdl8LclACZ8zcRKCGvdqXdXApQNgvKQwIDhj9YsYfp7hhUVzuu8AOGLnFZLCIe
gml+eVZ5P5bedO6dPjHZ8F0FoLz3i0/1K5uC+pMPLnCo5oCkYtZM+9UrpqfZhdc2
Yj5TLbgdDoh/wCPPdpL2g08iqmwIAbkUsHfsdG4mWp/ZmSAsoiTqurdMuwkIYykr
mwCnp1EK2SNw3QFw3fN7WliglCwjRaXThA3JaPfU5mIgPEUr2UfGUWnpwrzptJVC
49QJeWccaw1tYBKILloW6CZ5AR0BZ6DFGEaqkuw8MIXBXQJNPNeq4XmfYLcYMlt6
jMdg3Fv61W8aB2m9j68ktLLvFjhwocRuYf0JCJjAYocEVgaZoEF4zJ4dm5V3eeod
ea6mJRF6Pd8pZUCwJA85T5riwzVXTMXeeb17Vjv5qDbNZPGm0mpaSOCcxHi7z5oc
YAJzQ2QE0Kb1pstPeLkE9wIGmFBsmY3YKgIGtoYKg5RvUYNKEoWrL0Rsf6ZrZHMq
MJEnVAUdD/vjTxjX8xTQrmEUR3SHVuwz8b5wYI1gZDQTSyDzq4RrTKYTaCNwEHP7
HOYaRmiZZWsDssUhXarWvrWHWsHfYmfS+3m06mvyusQf4H6REHEHL/MzWH7jFvU8
9QGlar7K9Sw=
=UYWJ
-----END PGP SIGNATURE-----