LinuxSecurity.com
Share your story
The central voice for Linux and Open Source security news
Home News Topics Advisories HOWTOs Features Newsletters About Register

Welcome!
Sign up!
EnGarde Community
Login
Polls
What is the most important Linux security technology?
 
Advisories
Community
Linux Events
Linux User Groups
Link to Us
Security Center
Book Reviews
Security Dictionary
Security Tips
SELinux
White Papers
Featured Blogs
All About Linux
DanWalsh LiveJournal
Securitydistro
Latest Newsletters
Linux Advisory Watch: August 15th, 2014
Linux Advisory Watch: August 8th, 2014
Subscribe
LinuxSecurity Newsletters
E-mail:
Choose Lists:
About our Newsletters
RSS Feeds
Get the LinuxSecurity news you want faster with RSS
Powered By

  
RedHat: Moderate: php security update Print E-mail
User Rating:      How can I rate this item?
Posted by Benjamin D. Thomas   
RedHat Linux Updated PHP packages that fix several security issues are now available for Red Hat Enterprise Linux 3 and 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team.
=====================================================================
                   Red Hat Security Advisory

Synopsis:          Moderate: php security update
Advisory ID:       RHSA-2008:0544-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2008-0544.html
Issue date:        2008-07-16
CVE Names:         CVE-2008-2051 CVE-2007-5898 CVE-2007-5899 
                   CVE-2007-4782 CVE-2008-2107 CVE-2008-2108 
=====================================================================

1. Summary:

Updated PHP packages that fix several security issues are now available for
Red Hat Enterprise Linux 3 and 5.

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

2. Relevant releases/architectures:

Red Hat Enterprise Linux AS version 3 - i386, ia64, ppc, s390, s390x, x86_64
Red Hat Desktop version 3 - i386, x86_64
Red Hat Enterprise Linux ES version 3 - i386, ia64, x86_64
Red Hat Enterprise Linux WS version 3 - i386, ia64, x86_64
RHEL Desktop Workstation (v. 5 client) - i386, x86_64
Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64

3. Description:

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

It was discovered that the PHP escapeshellcmd() function did not properly
escape multi-byte characters which are not valid in the locale used by the
script. This could allow an attacker to bypass quoting restrictions imposed
by escapeshellcmd() and execute arbitrary commands if the PHP script was
using certain locales. Scripts using the default UTF-8 locale are not
affected by this issue. (CVE-2008-2051)

PHP functions htmlentities() and htmlspecialchars() did not properly
recognize partial multi-byte sequences. Certain sequences of bytes could be
passed through these functions without being correctly HTML-escaped.
Depending on the browser being used, an attacker could use this flaw to
conduct cross-site scripting attacks. (CVE-2007-5898)

A PHP script which used the transparent session ID configuration option, or
which used the output_add_rewrite_var() function, could leak session
identifiers to external web sites. If a page included an HTML form with an
ACTION attribute referencing a non-local URL, the user's session ID would
be included in the form data passed to that URL. (CVE-2007-5899)

It was discovered that PHP fnmatch() function did not restrict the length
of the string argument. An attacker could use this flaw to crash the PHP
interpreter where a script used fnmatch() on untrusted input data.
(CVE-2007-4782)

It was discovered that PHP did not properly seed its pseudo-random number
generator used by functions such as rand() and mt_rand(), possibly allowing
an attacker to easily predict the generated pseudo-random values.
(CVE-2008-2107, CVE-2008-2108)

Users of PHP should upgrade to these updated packages, which contain
backported patches to correct these issues.

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/FAQ_58_10188

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

285881 - CVE-2007-4782 php crash in glob() and fnmatch() functions
382411 - CVE-2007-5898 php htmlentities/htmlspecialchars multibyte sequences
382431 - CVE-2007-5899 php session ID leakage
445006 - CVE-2008-2051 PHP multibyte shell escape flaw
445684 - CVE-2008-2107 PHP 32 bit weak random seed
445685 - CVE-2008-2108 PHP weak 64 bit random seed

6. Package List:

Red Hat Enterprise Linux AS version 3:

Source:
ftp://updates.redhat.com/enterprise/3AS/en/os/SRPMS/php-4.3.2-48.ent.src.rpm

i386:
php-4.3.2-48.ent.i386.rpm
php-debuginfo-4.3.2-48.ent.i386.rpm
php-devel-4.3.2-48.ent.i386.rpm
php-imap-4.3.2-48.ent.i386.rpm
php-ldap-4.3.2-48.ent.i386.rpm
php-mysql-4.3.2-48.ent.i386.rpm
php-odbc-4.3.2-48.ent.i386.rpm
php-pgsql-4.3.2-48.ent.i386.rpm

ia64:
php-4.3.2-48.ent.ia64.rpm
php-debuginfo-4.3.2-48.ent.ia64.rpm
php-devel-4.3.2-48.ent.ia64.rpm
php-imap-4.3.2-48.ent.ia64.rpm
php-ldap-4.3.2-48.ent.ia64.rpm
php-mysql-4.3.2-48.ent.ia64.rpm
php-odbc-4.3.2-48.ent.ia64.rpm
php-pgsql-4.3.2-48.ent.ia64.rpm

ppc:
php-4.3.2-48.ent.ppc.rpm
php-debuginfo-4.3.2-48.ent.ppc.rpm
php-devel-4.3.2-48.ent.ppc.rpm
php-imap-4.3.2-48.ent.ppc.rpm
php-ldap-4.3.2-48.ent.ppc.rpm
php-mysql-4.3.2-48.ent.ppc.rpm
php-odbc-4.3.2-48.ent.ppc.rpm
php-pgsql-4.3.2-48.ent.ppc.rpm

s390:
php-4.3.2-48.ent.s390.rpm
php-debuginfo-4.3.2-48.ent.s390.rpm
php-devel-4.3.2-48.ent.s390.rpm
php-imap-4.3.2-48.ent.s390.rpm
php-ldap-4.3.2-48.ent.s390.rpm
php-mysql-4.3.2-48.ent.s390.rpm
php-odbc-4.3.2-48.ent.s390.rpm
php-pgsql-4.3.2-48.ent.s390.rpm

s390x:
php-4.3.2-48.ent.s390x.rpm
php-debuginfo-4.3.2-48.ent.s390x.rpm
php-devel-4.3.2-48.ent.s390x.rpm
php-imap-4.3.2-48.ent.s390x.rpm
php-ldap-4.3.2-48.ent.s390x.rpm
php-mysql-4.3.2-48.ent.s390x.rpm
php-odbc-4.3.2-48.ent.s390x.rpm
php-pgsql-4.3.2-48.ent.s390x.rpm

x86_64:
php-4.3.2-48.ent.x86_64.rpm
php-debuginfo-4.3.2-48.ent.x86_64.rpm
php-devel-4.3.2-48.ent.x86_64.rpm
php-imap-4.3.2-48.ent.x86_64.rpm
php-ldap-4.3.2-48.ent.x86_64.rpm
php-mysql-4.3.2-48.ent.x86_64.rpm
php-odbc-4.3.2-48.ent.x86_64.rpm
php-pgsql-4.3.2-48.ent.x86_64.rpm

Red Hat Desktop version 3:

Source:
ftp://updates.redhat.com/enterprise/3desktop/en/os/SRPMS/php-4.3.2-48.ent.src.rpm

i386:
php-4.3.2-48.ent.i386.rpm
php-debuginfo-4.3.2-48.ent.i386.rpm
php-devel-4.3.2-48.ent.i386.rpm
php-imap-4.3.2-48.ent.i386.rpm
php-ldap-4.3.2-48.ent.i386.rpm
php-mysql-4.3.2-48.ent.i386.rpm
php-odbc-4.3.2-48.ent.i386.rpm
php-pgsql-4.3.2-48.ent.i386.rpm

x86_64:
php-4.3.2-48.ent.x86_64.rpm
php-debuginfo-4.3.2-48.ent.x86_64.rpm
php-devel-4.3.2-48.ent.x86_64.rpm
php-imap-4.3.2-48.ent.x86_64.rpm
php-ldap-4.3.2-48.ent.x86_64.rpm
php-mysql-4.3.2-48.ent.x86_64.rpm
php-odbc-4.3.2-48.ent.x86_64.rpm
php-pgsql-4.3.2-48.ent.x86_64.rpm

Red Hat Enterprise Linux ES version 3:

Source:
ftp://updates.redhat.com/enterprise/3ES/en/os/SRPMS/php-4.3.2-48.ent.src.rpm

i386:
php-4.3.2-48.ent.i386.rpm
php-debuginfo-4.3.2-48.ent.i386.rpm
php-devel-4.3.2-48.ent.i386.rpm
php-imap-4.3.2-48.ent.i386.rpm
php-ldap-4.3.2-48.ent.i386.rpm
php-mysql-4.3.2-48.ent.i386.rpm
php-odbc-4.3.2-48.ent.i386.rpm
php-pgsql-4.3.2-48.ent.i386.rpm

ia64:
php-4.3.2-48.ent.ia64.rpm
php-debuginfo-4.3.2-48.ent.ia64.rpm
php-devel-4.3.2-48.ent.ia64.rpm
php-imap-4.3.2-48.ent.ia64.rpm
php-ldap-4.3.2-48.ent.ia64.rpm
php-mysql-4.3.2-48.ent.ia64.rpm
php-odbc-4.3.2-48.ent.ia64.rpm
php-pgsql-4.3.2-48.ent.ia64.rpm

x86_64:
php-4.3.2-48.ent.x86_64.rpm
php-debuginfo-4.3.2-48.ent.x86_64.rpm
php-devel-4.3.2-48.ent.x86_64.rpm
php-imap-4.3.2-48.ent.x86_64.rpm
php-ldap-4.3.2-48.ent.x86_64.rpm
php-mysql-4.3.2-48.ent.x86_64.rpm
php-odbc-4.3.2-48.ent.x86_64.rpm
php-pgsql-4.3.2-48.ent.x86_64.rpm

Red Hat Enterprise Linux WS version 3:

Source:
ftp://updates.redhat.com/enterprise/3WS/en/os/SRPMS/php-4.3.2-48.ent.src.rpm

i386:
php-4.3.2-48.ent.i386.rpm
php-debuginfo-4.3.2-48.ent.i386.rpm
php-devel-4.3.2-48.ent.i386.rpm
php-imap-4.3.2-48.ent.i386.rpm
php-ldap-4.3.2-48.ent.i386.rpm
php-mysql-4.3.2-48.ent.i386.rpm
php-odbc-4.3.2-48.ent.i386.rpm
php-pgsql-4.3.2-48.ent.i386.rpm

ia64:
php-4.3.2-48.ent.ia64.rpm
php-debuginfo-4.3.2-48.ent.ia64.rpm
php-devel-4.3.2-48.ent.ia64.rpm
php-imap-4.3.2-48.ent.ia64.rpm
php-ldap-4.3.2-48.ent.ia64.rpm
php-mysql-4.3.2-48.ent.ia64.rpm
php-odbc-4.3.2-48.ent.ia64.rpm
php-pgsql-4.3.2-48.ent.ia64.rpm

x86_64:
php-4.3.2-48.ent.x86_64.rpm
php-debuginfo-4.3.2-48.ent.x86_64.rpm
php-devel-4.3.2-48.ent.x86_64.rpm
php-imap-4.3.2-48.ent.x86_64.rpm
php-ldap-4.3.2-48.ent.x86_64.rpm
php-mysql-4.3.2-48.ent.x86_64.rpm
php-odbc-4.3.2-48.ent.x86_64.rpm
php-pgsql-4.3.2-48.ent.x86_64.rpm

RHEL Desktop Workstation (v. 5 client):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/php-5.1.6-20.el5_2.1.src.rpm

i386:
php-5.1.6-20.el5_2.1.i386.rpm
php-bcmath-5.1.6-20.el5_2.1.i386.rpm
php-cli-5.1.6-20.el5_2.1.i386.rpm
php-common-5.1.6-20.el5_2.1.i386.rpm
php-dba-5.1.6-20.el5_2.1.i386.rpm
php-debuginfo-5.1.6-20.el5_2.1.i386.rpm
php-devel-5.1.6-20.el5_2.1.i386.rpm
php-gd-5.1.6-20.el5_2.1.i386.rpm
php-imap-5.1.6-20.el5_2.1.i386.rpm
php-ldap-5.1.6-20.el5_2.1.i386.rpm
php-mbstring-5.1.6-20.el5_2.1.i386.rpm
php-mysql-5.1.6-20.el5_2.1.i386.rpm
php-ncurses-5.1.6-20.el5_2.1.i386.rpm
php-odbc-5.1.6-20.el5_2.1.i386.rpm
php-pdo-5.1.6-20.el5_2.1.i386.rpm
php-pgsql-5.1.6-20.el5_2.1.i386.rpm
php-snmp-5.1.6-20.el5_2.1.i386.rpm
php-soap-5.1.6-20.el5_2.1.i386.rpm
php-xml-5.1.6-20.el5_2.1.i386.rpm
php-xmlrpc-5.1.6-20.el5_2.1.i386.rpm

x86_64:
php-5.1.6-20.el5_2.1.x86_64.rpm
php-bcmath-5.1.6-20.el5_2.1.x86_64.rpm
php-cli-5.1.6-20.el5_2.1.x86_64.rpm
php-common-5.1.6-20.el5_2.1.x86_64.rpm
php-dba-5.1.6-20.el5_2.1.x86_64.rpm
php-debuginfo-5.1.6-20.el5_2.1.x86_64.rpm
php-devel-5.1.6-20.el5_2.1.x86_64.rpm
php-gd-5.1.6-20.el5_2.1.x86_64.rpm
php-imap-5.1.6-20.el5_2.1.x86_64.rpm
php-ldap-5.1.6-20.el5_2.1.x86_64.rpm
php-mbstring-5.1.6-20.el5_2.1.x86_64.rpm
php-mysql-5.1.6-20.el5_2.1.x86_64.rpm
php-ncurses-5.1.6-20.el5_2.1.x86_64.rpm
php-odbc-5.1.6-20.el5_2.1.x86_64.rpm
php-pdo-5.1.6-20.el5_2.1.x86_64.rpm
php-pgsql-5.1.6-20.el5_2.1.x86_64.rpm
php-snmp-5.1.6-20.el5_2.1.x86_64.rpm
php-soap-5.1.6-20.el5_2.1.x86_64.rpm
php-xml-5.1.6-20.el5_2.1.x86_64.rpm
php-xmlrpc-5.1.6-20.el5_2.1.x86_64.rpm

Red Hat Enterprise Linux (v. 5 server):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/php-5.1.6-20.el5_2.1.src.rpm

i386:
php-5.1.6-20.el5_2.1.i386.rpm
php-bcmath-5.1.6-20.el5_2.1.i386.rpm
php-cli-5.1.6-20.el5_2.1.i386.rpm
php-common-5.1.6-20.el5_2.1.i386.rpm
php-dba-5.1.6-20.el5_2.1.i386.rpm
php-debuginfo-5.1.6-20.el5_2.1.i386.rpm
php-devel-5.1.6-20.el5_2.1.i386.rpm
php-gd-5.1.6-20.el5_2.1.i386.rpm
php-imap-5.1.6-20.el5_2.1.i386.rpm
php-ldap-5.1.6-20.el5_2.1.i386.rpm
php-mbstring-5.1.6-20.el5_2.1.i386.rpm
php-mysql-5.1.6-20.el5_2.1.i386.rpm
php-ncurses-5.1.6-20.el5_2.1.i386.rpm
php-odbc-5.1.6-20.el5_2.1.i386.rpm
php-pdo-5.1.6-20.el5_2.1.i386.rpm
php-pgsql-5.1.6-20.el5_2.1.i386.rpm
php-snmp-5.1.6-20.el5_2.1.i386.rpm
php-soap-5.1.6-20.el5_2.1.i386.rpm
php-xml-5.1.6-20.el5_2.1.i386.rpm
php-xmlrpc-5.1.6-20.el5_2.1.i386.rpm

ia64:
php-5.1.6-20.el5_2.1.ia64.rpm
php-bcmath-5.1.6-20.el5_2.1.ia64.rpm
php-cli-5.1.6-20.el5_2.1.ia64.rpm
php-common-5.1.6-20.el5_2.1.ia64.rpm
php-dba-5.1.6-20.el5_2.1.ia64.rpm
php-debuginfo-5.1.6-20.el5_2.1.ia64.rpm
php-devel-5.1.6-20.el5_2.1.ia64.rpm
php-gd-5.1.6-20.el5_2.1.ia64.rpm
php-imap-5.1.6-20.el5_2.1.ia64.rpm
php-ldap-5.1.6-20.el5_2.1.ia64.rpm
php-mbstring-5.1.6-20.el5_2.1.ia64.rpm
php-mysql-5.1.6-20.el5_2.1.ia64.rpm
php-ncurses-5.1.6-20.el5_2.1.ia64.rpm
php-odbc-5.1.6-20.el5_2.1.ia64.rpm
php-pdo-5.1.6-20.el5_2.1.ia64.rpm
php-pgsql-5.1.6-20.el5_2.1.ia64.rpm
php-snmp-5.1.6-20.el5_2.1.ia64.rpm
php-soap-5.1.6-20.el5_2.1.ia64.rpm
php-xml-5.1.6-20.el5_2.1.ia64.rpm
php-xmlrpc-5.1.6-20.el5_2.1.ia64.rpm

ppc:
php-5.1.6-20.el5_2.1.ppc.rpm
php-bcmath-5.1.6-20.el5_2.1.ppc.rpm
php-cli-5.1.6-20.el5_2.1.ppc.rpm
php-common-5.1.6-20.el5_2.1.ppc.rpm
php-dba-5.1.6-20.el5_2.1.ppc.rpm
php-debuginfo-5.1.6-20.el5_2.1.ppc.rpm
php-devel-5.1.6-20.el5_2.1.ppc.rpm
php-gd-5.1.6-20.el5_2.1.ppc.rpm
php-imap-5.1.6-20.el5_2.1.ppc.rpm
php-ldap-5.1.6-20.el5_2.1.ppc.rpm
php-mbstring-5.1.6-20.el5_2.1.ppc.rpm
php-mysql-5.1.6-20.el5_2.1.ppc.rpm
php-ncurses-5.1.6-20.el5_2.1.ppc.rpm
php-odbc-5.1.6-20.el5_2.1.ppc.rpm
php-pdo-5.1.6-20.el5_2.1.ppc.rpm
php-pgsql-5.1.6-20.el5_2.1.ppc.rpm
php-snmp-5.1.6-20.el5_2.1.ppc.rpm
php-soap-5.1.6-20.el5_2.1.ppc.rpm
php-xml-5.1.6-20.el5_2.1.ppc.rpm
php-xmlrpc-5.1.6-20.el5_2.1.ppc.rpm

s390x:
php-5.1.6-20.el5_2.1.s390x.rpm
php-bcmath-5.1.6-20.el5_2.1.s390x.rpm
php-cli-5.1.6-20.el5_2.1.s390x.rpm
php-common-5.1.6-20.el5_2.1.s390x.rpm
php-dba-5.1.6-20.el5_2.1.s390x.rpm
php-debuginfo-5.1.6-20.el5_2.1.s390x.rpm
php-devel-5.1.6-20.el5_2.1.s390x.rpm
php-gd-5.1.6-20.el5_2.1.s390x.rpm
php-imap-5.1.6-20.el5_2.1.s390x.rpm
php-ldap-5.1.6-20.el5_2.1.s390x.rpm
php-mbstring-5.1.6-20.el5_2.1.s390x.rpm
php-mysql-5.1.6-20.el5_2.1.s390x.rpm
php-ncurses-5.1.6-20.el5_2.1.s390x.rpm
php-odbc-5.1.6-20.el5_2.1.s390x.rpm
php-pdo-5.1.6-20.el5_2.1.s390x.rpm
php-pgsql-5.1.6-20.el5_2.1.s390x.rpm
php-snmp-5.1.6-20.el5_2.1.s390x.rpm
php-soap-5.1.6-20.el5_2.1.s390x.rpm
php-xml-5.1.6-20.el5_2.1.s390x.rpm
php-xmlrpc-5.1.6-20.el5_2.1.s390x.rpm

x86_64:
php-5.1.6-20.el5_2.1.x86_64.rpm
php-bcmath-5.1.6-20.el5_2.1.x86_64.rpm
php-cli-5.1.6-20.el5_2.1.x86_64.rpm
php-common-5.1.6-20.el5_2.1.x86_64.rpm
php-dba-5.1.6-20.el5_2.1.x86_64.rpm
php-debuginfo-5.1.6-20.el5_2.1.x86_64.rpm
php-devel-5.1.6-20.el5_2.1.x86_64.rpm
php-gd-5.1.6-20.el5_2.1.x86_64.rpm
php-imap-5.1.6-20.el5_2.1.x86_64.rpm
php-ldap-5.1.6-20.el5_2.1.x86_64.rpm
php-mbstring-5.1.6-20.el5_2.1.x86_64.rpm
php-mysql-5.1.6-20.el5_2.1.x86_64.rpm
php-ncurses-5.1.6-20.el5_2.1.x86_64.rpm
php-odbc-5.1.6-20.el5_2.1.x86_64.rpm
php-pdo-5.1.6-20.el5_2.1.x86_64.rpm
php-pgsql-5.1.6-20.el5_2.1.x86_64.rpm
php-snmp-5.1.6-20.el5_2.1.x86_64.rpm
php-soap-5.1.6-20.el5_2.1.x86_64.rpm
php-xml-5.1.6-20.el5_2.1.x86_64.rpm
php-xmlrpc-5.1.6-20.el5_2.1.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-2051
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5898
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5899
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4782
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2107
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2108
http://www.redhat.com/security/updates/classification/#moderate

8. Contact:

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

Copyright 2008 Red Hat, Inc.
 
< Prev   Next >
    
Partner

 

Latest Features
Peter Smith Releases Linux Network Security Online
Securing a Linux Web Server
Password guessing with Medusa 2.0
Password guessing as an attack vector
Squid and Digest Authentication
Squid and Basic Authentication
Demystifying the Chinese Hacking Industry: Earning 6 Million a Night
Free Online security course (LearnSIA) - A Call for Help
What You Need to Know About Linux Rootkits
Review: A Practical Guide to Fedora and Red Hat Enterprise Linux - Fifth Edition
Yesterday's Edition
State-of-the-art spear phishing and defenses
Linux kernel source code repositories get better security
Partner Sponsor

Community | HOWTOs | Blogs | Features | Book Reviews | Networking
 Security Projects |  Latest News |  Newsletters |  SELinux |  Privacy |  Home
 Hardening |   About Us |   Advertise |   Legal Notice |   RSS |   Guardian Digital
(c)Copyright 2014 Guardian Digital, Inc. All rights reserved.