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

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

                         ESB-2009.0508 -- [RedHat]
          Red Hat Application Stack v2.3: Execute Arbitrary Code
                                27 May 2009

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

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

Publisher:            Red Hat
Operating System:     Red Hat Linux 5
Impact:               Execute Arbitrary Code/Commands
                      Increased Privileges
                      Denial of Service
Access:               Remote/Unauthenticated
CVE Names:            CVE-2009-1341 CVE-2009-0922 CVE-2009-0663
                      CVE-2008-4098 CVE-2008-3963 CVE-2008-2079

Ref:                  AA-2009.0061
                      ESB-2009.0464
                      ESB-2009.0419
                      ESB-2009.0412
                      ESB-2008.1027

Original Bulletin:    https://rhn.redhat.com/errata/RHSA-2009-1067.html

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

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

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

Synopsis:          Moderate: Red Hat Application Stack v2.3 security and 
                             enhancement update
Advisory ID:       RHSA-2009:1067-01
Product:           Red Hat Application Stack
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2009-1067.html
Issue date:        2009-05-26
CVE Names:         CVE-2008-3963 CVE-2008-4098 CVE-2009-0663 
                   CVE-2009-0922 CVE-2009-1341 
=====================================================================

1. Summary:

Red Hat Application Stack v2.3 is now available. This update fixes several
security issues and adds various enhancements.

This update has been rated as having moderate security impact by the Red
Hat Security Response Team.

2. Relevant releases/architectures:

Red Hat Application Stack v2 for Enterprise Linux (v.5) - i386, x86_64

3. Description:

Red Hat Application Stack v2.3 is an integrated open source application
stack, that includes Red Hat Enterprise Linux 5 and JBoss Enterprise
Application Platform (EAP). JBoss EAP is provided through the JBoss EAP
channels on the Red Hat Network.

This update fixes the following security issues:

A heap-based buffer overflow flaw was discovered in the perl-DBD-Pg
pg_getline function implementation. If the pg_getline or getline functions
read large, untrusted records from a database, it could cause an
application using these functions to crash or, possibly, execute arbitrary
code. (CVE-2009-0663)

Note: After installing this update, pg_getline may return more data than
specified by its second argument, as this argument will be ignored. This is
consistent with current upstream behavior. Previously, the length limit
(the second argument) was not enforced, allowing a buffer overflow.

A memory leak flaw was found in the perl-DBD-Pg function performing the
de-quoting of BYTEA type values acquired from a database. An attacker able
to cause an application using perl-DBD-Pg to perform a large number of SQL
queries returning BYTEA records, could cause the application to use
excessive amounts of memory or, possibly, crash. (CVE-2009-1341)

MySQL was updated to version 5.0.79, fixing the following security issues:

A flaw was found in the way MySQL handles an empty bit-string literal. A
remote, authenticated attacker could crash the MySQL server daemon (mysqld)
if they used an empty bit-string literal in an SQL statement. This issue
only caused a temporary denial of service, as the MySQL daemon was
automatically restarted after the crash. (CVE-2008-3963)

It was discovered that the Red Hat Security Advisory RHSA-2008:0505, for
Red Hat Application Stack v2.1, provided an incomplete fix for the flaw
where MySQL did not correctly check directories used as arguments for the
DATA DIRECTORY and INDEX DIRECTORY directives. Using this flaw, an
authenticated attacker could elevate their access privileges to tables
created by other database users. Note: This attack does not work on
existing tables. An attacker can only elevate their access to another
user's tables as the tables are created. As well, the names of these
created tables need to be predicted correctly for this attack to succeed.
(CVE-2008-4098)

PostgreSQL was updated to version 8.2.13, fixing the following security
issue:

A flaw was found in the way PostgreSQL handles encoding conversion. A
remote, authenticated user could trigger an encoding conversion failure,
possibly leading to a temporary denial of service. (CVE-2009-0922)

Also, the following packages have been updated:

* httpd to 2.2.11
* mysql-connector-odbc to 3.51.27r695
* perl-DBD-MySQL to 4.010-1.el5s2
* php to 5.2.9
* postgresql-jdbc to 8.2.509
* postgresqlclient81 to 8.1.17

All users should upgrade to these updated packages, which resolve these
issues. Users must restart the individual services, including postgresql,
mysqld, and httpd, for this update to take effect.

4. Solution:

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/docs/DOC-11259

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

454077 - CVE-2008-4098 mysql: incomplete upstream fix for CVE-2008-2079
462071 - CVE-2008-3963 MySQL: Using an empty binary value leads to server 
                              crash
488156 - CVE-2009-0922 postgresql: potential DoS due to conversion functions
497367 - CVE-2009-0663 perl-DBD-Pg: pg_getline buffer overflow
497503 - CVE-2009-1341 perl-DBD-Pg: dequote_bytea memory leak

6. Package List:

Red Hat Application Stack v2 for Enterprise Linux (v.5):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/httpd-2.2.11-2.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/mod_jk-1.2.28-2.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/mysql-connector-odbc-3.51.27r695-1.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/perl-DBD-MySQL-4.010-1.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/perl-DBD-Pg-1.49-5.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/php-5.2.9-2.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/postgresql-8.2.13-2.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/postgresql-jdbc-8.2.509-2jpp.el5s2.src.rpm
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/postgresqlclient81-8.1.17-1.el5s2.src.rpm

i386:
httpd-2.2.11-2.el5s2.i386.rpm
httpd-debuginfo-2.2.11-2.el5s2.i386.rpm
httpd-devel-2.2.11-2.el5s2.i386.rpm
httpd-manual-2.2.11-2.el5s2.i386.rpm
mod_jk-ap20-1.2.28-2.el5s2.i386.rpm
mod_jk-debuginfo-1.2.28-2.el5s2.i386.rpm
mod_ssl-2.2.11-2.el5s2.i386.rpm
mysql-5.0.79-2.el5s2.i386.rpm
mysql-bench-5.0.79-2.el5s2.i386.rpm
mysql-cluster-5.0.79-2.el5s2.i386.rpm
mysql-connector-odbc-3.51.27r695-1.el5s2.i386.rpm
mysql-connector-odbc-debuginfo-3.51.27r695-1.el5s2.i386.rpm
mysql-debuginfo-5.0.79-2.el5s2.i386.rpm
mysql-devel-5.0.79-2.el5s2.i386.rpm
mysql-libs-5.0.79-2.el5s2.i386.rpm
mysql-server-5.0.79-2.el5s2.i386.rpm
mysql-test-5.0.79-2.el5s2.i386.rpm
perl-DBD-MySQL-4.010-1.el5s2.i386.rpm
perl-DBD-MySQL-debuginfo-4.010-1.el5s2.i386.rpm
perl-DBD-Pg-1.49-5.el5s2.i386.rpm
perl-DBD-Pg-debuginfo-1.49-5.el5s2.i386.rpm
php-5.2.9-2.el5s2.i386.rpm
php-bcmath-5.2.9-2.el5s2.i386.rpm
php-cli-5.2.9-2.el5s2.i386.rpm
php-common-5.2.9-2.el5s2.i386.rpm
php-dba-5.2.9-2.el5s2.i386.rpm
php-debuginfo-5.2.9-2.el5s2.i386.rpm
php-devel-5.2.9-2.el5s2.i386.rpm
php-gd-5.2.9-2.el5s2.i386.rpm
php-imap-5.2.9-2.el5s2.i386.rpm
php-ldap-5.2.9-2.el5s2.i386.rpm
php-mbstring-5.2.9-2.el5s2.i386.rpm
php-mysql-5.2.9-2.el5s2.i386.rpm
php-ncurses-5.2.9-2.el5s2.i386.rpm
php-odbc-5.2.9-2.el5s2.i386.rpm
php-pdo-5.2.9-2.el5s2.i386.rpm
php-pgsql-5.2.9-2.el5s2.i386.rpm
php-snmp-5.2.9-2.el5s2.i386.rpm
php-soap-5.2.9-2.el5s2.i386.rpm
php-xml-5.2.9-2.el5s2.i386.rpm
php-xmlrpc-5.2.9-2.el5s2.i386.rpm
postgresql-8.2.13-2.el5s2.i386.rpm
postgresql-contrib-8.2.13-2.el5s2.i386.rpm
postgresql-debuginfo-8.2.13-2.el5s2.i386.rpm
postgresql-devel-8.2.13-2.el5s2.i386.rpm
postgresql-docs-8.2.13-2.el5s2.i386.rpm
postgresql-jdbc-8.2.509-2jpp.el5s2.i386.rpm
postgresql-jdbc-debuginfo-8.2.509-2jpp.el5s2.i386.rpm
postgresql-libs-8.2.13-2.el5s2.i386.rpm
postgresql-plperl-8.2.13-2.el5s2.i386.rpm
postgresql-plpython-8.2.13-2.el5s2.i386.rpm
postgresql-pltcl-8.2.13-2.el5s2.i386.rpm
postgresql-python-8.2.13-2.el5s2.i386.rpm
postgresql-server-8.2.13-2.el5s2.i386.rpm
postgresql-tcl-8.2.13-2.el5s2.i386.rpm
postgresql-test-8.2.13-2.el5s2.i386.rpm
postgresqlclient81-8.1.17-1.el5s2.i386.rpm
postgresqlclient81-debuginfo-8.1.17-1.el5s2.i386.rpm

x86_64:
httpd-2.2.11-2.el5s2.x86_64.rpm
httpd-debuginfo-2.2.11-2.el5s2.i386.rpm
httpd-debuginfo-2.2.11-2.el5s2.x86_64.rpm
httpd-devel-2.2.11-2.el5s2.i386.rpm
httpd-devel-2.2.11-2.el5s2.x86_64.rpm
httpd-manual-2.2.11-2.el5s2.x86_64.rpm
mod_jk-ap20-1.2.28-2.el5s2.x86_64.rpm
mod_jk-debuginfo-1.2.28-2.el5s2.x86_64.rpm
mod_ssl-2.2.11-2.el5s2.x86_64.rpm
mysql-5.0.79-2.el5s2.i386.rpm
mysql-5.0.79-2.el5s2.x86_64.rpm
mysql-bench-5.0.79-2.el5s2.x86_64.rpm
mysql-cluster-5.0.79-2.el5s2.x86_64.rpm
mysql-connector-odbc-3.51.27r695-1.el5s2.x86_64.rpm
mysql-connector-odbc-debuginfo-3.51.27r695-1.el5s2.x86_64.rpm
mysql-debuginfo-5.0.79-2.el5s2.i386.rpm
mysql-debuginfo-5.0.79-2.el5s2.x86_64.rpm
mysql-devel-5.0.79-2.el5s2.i386.rpm
mysql-devel-5.0.79-2.el5s2.x86_64.rpm
mysql-libs-5.0.79-2.el5s2.i386.rpm
mysql-libs-5.0.79-2.el5s2.x86_64.rpm
mysql-server-5.0.79-2.el5s2.x86_64.rpm
mysql-test-5.0.79-2.el5s2.x86_64.rpm
perl-DBD-MySQL-4.010-1.el5s2.x86_64.rpm
perl-DBD-MySQL-debuginfo-4.010-1.el5s2.x86_64.rpm
perl-DBD-Pg-1.49-5.el5s2.x86_64.rpm
perl-DBD-Pg-debuginfo-1.49-5.el5s2.x86_64.rpm
php-5.2.9-2.el5s2.x86_64.rpm
php-bcmath-5.2.9-2.el5s2.x86_64.rpm
php-cli-5.2.9-2.el5s2.x86_64.rpm
php-common-5.2.9-2.el5s2.x86_64.rpm
php-dba-5.2.9-2.el5s2.x86_64.rpm
php-debuginfo-5.2.9-2.el5s2.x86_64.rpm
php-devel-5.2.9-2.el5s2.x86_64.rpm
php-gd-5.2.9-2.el5s2.x86_64.rpm
php-imap-5.2.9-2.el5s2.x86_64.rpm
php-ldap-5.2.9-2.el5s2.x86_64.rpm
php-mbstring-5.2.9-2.el5s2.x86_64.rpm
php-mysql-5.2.9-2.el5s2.x86_64.rpm
php-ncurses-5.2.9-2.el5s2.x86_64.rpm
php-odbc-5.2.9-2.el5s2.x86_64.rpm
php-pdo-5.2.9-2.el5s2.x86_64.rpm
php-pgsql-5.2.9-2.el5s2.x86_64.rpm
php-snmp-5.2.9-2.el5s2.x86_64.rpm
php-soap-5.2.9-2.el5s2.x86_64.rpm
php-xml-5.2.9-2.el5s2.x86_64.rpm
php-xmlrpc-5.2.9-2.el5s2.x86_64.rpm
postgresql-8.2.13-2.el5s2.x86_64.rpm
postgresql-contrib-8.2.13-2.el5s2.x86_64.rpm
postgresql-debuginfo-8.2.13-2.el5s2.i386.rpm
postgresql-debuginfo-8.2.13-2.el5s2.x86_64.rpm
postgresql-devel-8.2.13-2.el5s2.i386.rpm
postgresql-devel-8.2.13-2.el5s2.x86_64.rpm
postgresql-docs-8.2.13-2.el5s2.x86_64.rpm
postgresql-jdbc-8.2.509-2jpp.el5s2.x86_64.rpm
postgresql-jdbc-debuginfo-8.2.509-2jpp.el5s2.x86_64.rpm
postgresql-libs-8.2.13-2.el5s2.i386.rpm
postgresql-libs-8.2.13-2.el5s2.x86_64.rpm
postgresql-plperl-8.2.13-2.el5s2.x86_64.rpm
postgresql-plpython-8.2.13-2.el5s2.x86_64.rpm
postgresql-pltcl-8.2.13-2.el5s2.x86_64.rpm
postgresql-python-8.2.13-2.el5s2.x86_64.rpm
postgresql-server-8.2.13-2.el5s2.x86_64.rpm
postgresql-tcl-8.2.13-2.el5s2.x86_64.rpm
postgresql-test-8.2.13-2.el5s2.x86_64.rpm
postgresqlclient81-8.1.17-1.el5s2.i386.rpm
postgresqlclient81-8.1.17-1.el5s2.x86_64.rpm
postgresqlclient81-debuginfo-8.1.17-1.el5s2.i386.rpm
postgresqlclient81-debuginfo-8.1.17-1.el5s2.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://www.redhat.com/security/team/key/#package

7. References:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-3963
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4098
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0663
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0922
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1341
http://www.redhat.com/security/updates/classification/#moderate

8. Contact:

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

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

iD8DBQFKHCmoXlSAg2UNWIIRAupAAJ4vMxFqUdphdOG/7P/3lS7z3S/1twCfe3bJ
fMo7KqCYDMTARro6tAQY1cI=
=2EKN
- -----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

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

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

iD8DBQFKHH8JNVH5XJJInbgRAqYEAJ9Qggc7pSgSUNUxdYO+yhv9F2CRhwCeNf2E
8kgOynDb4X8yTB6PaYSl1/4=
=Nja2
-----END PGP SIGNATURE-----