Security Advisory php security update

Advisory: RHSA-2004:395-10
Type: Security Advisory
Severity: Important
Issued on: 2004-07-19
Last updated on: 2004-07-19
Affected Products: Red Hat Enterprise Linux AS (v. 2.1)
Red Hat Enterprise Linux ES (v. 2.1)
Red Hat Enterprise Linux WS (v. 2.1)
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor
OVAL: N/A
CVEs (cve.mitre.org): CVE-2004-0594
CVE-2004-0595

Details

Updated php packages that fix various security issues are now available.

PHP is an HTML-embedded scripting language commonly used with the Apache
HTTP server.

Stefan Esser discovered a flaw when memory_limit configuration setting is
enabled in versions of PHP 4 before 4.3.8. If a remote attacker could
force the PHP interpreter to allocate more memory than the memory_limit
setting before script execution begins, then the attacker may be
able to supply the contents of a PHP hash table remotely. This hash table
could then be used to execute arbitrary code as the 'apache' user. The
Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
the name CAN-2004-0594 to this issue.

This issue may be exploitable if using the default PHP configuration with
the "register_globals" setting of "On". The Apache memory exhaustion bug,
fixed in a previous update to Red Hat Enterprise Linux 3, may also allow
this PHP issue to be exploited; this Apache bug does not affect Red Hat
Enterprise Linux 2.1.

Stefan Esser discovered a flaw in the strip_tags function in versions of
PHP before 4.3.8. The strip_tags function is commonly used by PHP scripts
to prevent Cross-Site-Scripting attacks by removing HTML tags from
user-supplied form data. By embedding NUL bytes into form data, HTML tags
can in some cases be passed intact through the strip_tags function, which
may allow a Cross-Site-Scripting attack. The Common Vulnerabilities and
Exposures project (cve.mitre.org) has assigned the name CAN-2004-0595 to
this issue.

All users of PHP are advised to upgrade to these updated packages, which
contain backported patches that address these issues.


Solution

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied. Use Red Hat
Network to download and update your packages. To launch the Red Hat
Update Agent, use the following command:

up2date

For information on how to install packages manually, refer to the
following Web page for the System Administration or Customization
guide specific to your system:

http://www.redhat.com/docs/manuals/enterprise/

Updated packages

Red Hat Enterprise Linux AS (v. 2.1)

SRPMS:
php-4.1.2-2.1.8.src.rpm
File outdated by:  RHSA-2008:0546
    a3710916a788e214dd27442e2f369008
 
IA-32:
php-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    6dccaf45719dc7c8ecb29df7d9a28e6c
php-devel-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    d94f28bcd430fb1dfd9235af6c4af4df
php-imap-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    2a988813d6733e42bdd66b5691172953
php-ldap-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    0f11a0d7ce0b62b9db26bd84473dfbe0
php-manual-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    3e5975c1d66d9d6b4def98ececa876ce
php-mysql-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    1dc6c9a792bd4108f1ca5b01b8efdcc3
php-odbc-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    c1f1e537f8c81ce42018bd788091f60c
php-pgsql-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    79d40cdd20a74f7c6b23823bee29b150
 
IA-64:
php-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    a11020ac53d63ce4e2df2708da21591d
php-devel-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    a1e8e665332c3f3456d1eec24700aaa3
php-imap-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    96dbf23b1a8b6234ad61502fb954a318
php-ldap-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    70b672ea65599968de47e36ecae14cf9
php-manual-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    aa60f963a99e6fd3ade2127775aca5fe
php-mysql-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    5ff4cd8846d5b5ef599378cdc8471de4
php-odbc-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    3bba7c50cd769721e32d3625eb5ca2d6
php-pgsql-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    1bf23359ab411249b1e7c386851cb066
 
Red Hat Enterprise Linux ES (v. 2.1)

SRPMS:
php-4.1.2-2.1.8.src.rpm
File outdated by:  RHSA-2008:0546
    a3710916a788e214dd27442e2f369008
 
IA-32:
php-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    6dccaf45719dc7c8ecb29df7d9a28e6c
php-devel-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    d94f28bcd430fb1dfd9235af6c4af4df
php-imap-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    2a988813d6733e42bdd66b5691172953
php-ldap-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    0f11a0d7ce0b62b9db26bd84473dfbe0
php-manual-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    3e5975c1d66d9d6b4def98ececa876ce
php-mysql-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    1dc6c9a792bd4108f1ca5b01b8efdcc3
php-odbc-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    c1f1e537f8c81ce42018bd788091f60c
php-pgsql-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    79d40cdd20a74f7c6b23823bee29b150
 
Red Hat Enterprise Linux WS (v. 2.1)

SRPMS:
php-4.1.2-2.1.8.src.rpm
File outdated by:  RHSA-2008:0546
    a3710916a788e214dd27442e2f369008
 
IA-32:
php-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    6dccaf45719dc7c8ecb29df7d9a28e6c
php-devel-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    d94f28bcd430fb1dfd9235af6c4af4df
php-imap-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    2a988813d6733e42bdd66b5691172953
php-ldap-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    0f11a0d7ce0b62b9db26bd84473dfbe0
php-manual-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    3e5975c1d66d9d6b4def98ececa876ce
php-mysql-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    1dc6c9a792bd4108f1ca5b01b8efdcc3
php-odbc-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    c1f1e537f8c81ce42018bd788091f60c
php-pgsql-4.1.2-2.1.8.i386.rpm
File outdated by:  RHSA-2008:0546
    79d40cdd20a74f7c6b23823bee29b150
 
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor

SRPMS:
php-4.1.2-2.1.8.src.rpm
File outdated by:  RHSA-2008:0546
    a3710916a788e214dd27442e2f369008
 
IA-64:
php-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    a11020ac53d63ce4e2df2708da21591d
php-devel-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    a1e8e665332c3f3456d1eec24700aaa3
php-imap-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    96dbf23b1a8b6234ad61502fb954a318
php-ldap-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    70b672ea65599968de47e36ecae14cf9
php-manual-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    aa60f963a99e6fd3ade2127775aca5fe
php-mysql-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    5ff4cd8846d5b5ef599378cdc8471de4
php-odbc-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    3bba7c50cd769721e32d3625eb5ca2d6
php-pgsql-4.1.2-2.1.8.ia64.rpm
File outdated by:  RHSA-2008:0546
    1bf23359ab411249b1e7c386851cb066
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

127642 - CAN-2004-0594 PHP memory_limit issue


References



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

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