SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Generic)  >   PHP Vendors:   PHP Group
(Red Hat Issues Fix for PHP) PCRE Regex Processing Bugs May Let Users Execute Arbitrary Code
SecurityTracker Alert ID:  1020502
SecurityTracker URL:  http://securitytracker.com/id/1020502
CVE Reference:   CVE-2007-1660   (Links to External Site)
Date:  Jul 16 2008
Impact:   Execution of arbitrary code via local system, Execution of arbitrary code via network, User access via local system, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  

Description:   Two vulnerabilities were reported in PCRE. A local or remote user can execute arbitrary code on the target system. PHP is affected.

A remote or local user may be able to supply a specially crafted regular expression to trigger a memory in PCRE.

The impact depends on the application that uses the library. Applications that parse untrusted regular expressions may be vulnerable.

Unmatched \Q\E sequences with orphan \E codes can cause code execution [CVE-2007-1659].

Certain character classes can trigger code execution [CVE-2007-1660].

Tavis Ormandy reported these vulnerabilities.

Impact:   A local or remote user can execute arbitrary code on the target system.
Solution:   Red Hat has released a fix for CVE-2007-1660 for PHP, which is affected by this vulnerability.

The Red Hat advisory is available at:

https://rhn.redhat.com/errata/RHSA-2008-0546.html

Cause:   Access control error, State error
Underlying OS:   Linux (Red Hat Enterprise)

Message History:   This archive entry is a follow-up to the message listed below.
Nov 6 2007 PCRE Regex Processing Bugs May Let Users Execute Arbitrary Code



 Source Message Contents

Date:  Wed, 16 Jul 2008 05:59:33 -0400
Subject:  [RHSA-2008:0546-01] Moderate: php security update


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

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

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

1. Summary:

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

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 (Advanced Server) version 2.1  - i386, ia64
Red Hat Linux Advanced Workstation 2.1 - ia64
Red Hat Enterprise Linux ES version 2.1 - i386
Red Hat Enterprise Linux WS version 2.1 - i386

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)

The 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 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)

Integer overflow and memory requirements miscalculation issues were
discovered in the Perl-Compatible Regular Expression (PCRE) library used by
PHP to process regular expressions. These issues could cause a crash, or
possibly execute an arbitrary code with the privileges of the PHP script
that processes regular expressions from untrusted sources. Note: PHP
packages shipped with Red Hat Enterprise Linux 2.1 did not use the
system-level PCRE library. By default they used an embedded copy of the
library included with the PHP package. (CVE-2006-7228, CVE-2007-1660)

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/):

315881 - CVE-2007-1660 pcre regular expression flaws
382411 - CVE-2007-5898 php htmlentities/htmlspecialchars multibyte sequences
382431 - CVE-2007-5899 php session ID leakage
383371 - CVE-2006-7228 pcre integer overflow
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 (Advanced Server) version 2.1 :

Source:
ftp://updates.redhat.com/enterprise/2.1AS/en/os/SRPMS/php-4.1.2-2.20.src.rpm

i386:
php-4.1.2-2.20.i386.rpm
php-devel-4.1.2-2.20.i386.rpm
php-imap-4.1.2-2.20.i386.rpm
php-ldap-4.1.2-2.20.i386.rpm
php-manual-4.1.2-2.20.i386.rpm
php-mysql-4.1.2-2.20.i386.rpm
php-odbc-4.1.2-2.20.i386.rpm
php-pgsql-4.1.2-2.20.i386.rpm

ia64:
php-4.1.2-2.20.ia64.rpm
php-devel-4.1.2-2.20.ia64.rpm
php-imap-4.1.2-2.20.ia64.rpm
php-ldap-4.1.2-2.20.ia64.rpm
php-manual-4.1.2-2.20.ia64.rpm
php-mysql-4.1.2-2.20.ia64.rpm
php-odbc-4.1.2-2.20.ia64.rpm
php-pgsql-4.1.2-2.20.ia64.rpm

Red Hat Linux Advanced Workstation 2.1:

Source:
ftp://updates.redhat.com/enterprise/2.1AW/en/os/SRPMS/php-4.1.2-2.20.src.rpm

ia64:
php-4.1.2-2.20.ia64.rpm
php-devel-4.1.2-2.20.ia64.rpm
php-imap-4.1.2-2.20.ia64.rpm
php-ldap-4.1.2-2.20.ia64.rpm
php-manual-4.1.2-2.20.ia64.rpm
php-mysql-4.1.2-2.20.ia64.rpm
php-odbc-4.1.2-2.20.ia64.rpm
php-pgsql-4.1.2-2.20.ia64.rpm

Red Hat Enterprise Linux ES version 2.1:

Source:
ftp://updates.redhat.com/enterprise/2.1ES/en/os/SRPMS/php-4.1.2-2.20.src.rpm

i386:
php-4.1.2-2.20.i386.rpm
php-devel-4.1.2-2.20.i386.rpm
php-imap-4.1.2-2.20.i386.rpm
php-ldap-4.1.2-2.20.i386.rpm
php-manual-4.1.2-2.20.i386.rpm
php-mysql-4.1.2-2.20.i386.rpm
php-odbc-4.1.2-2.20.i386.rpm
php-pgsql-4.1.2-2.20.i386.rpm

Red Hat Enterprise Linux WS version 2.1:

Source:
ftp://updates.redhat.com/enterprise/2.1WS/en/os/SRPMS/php-4.1.2-2.20.src.rpm

i386:
php-4.1.2-2.20.i386.rpm
php-devel-4.1.2-2.20.i386.rpm
php-imap-4.1.2-2.20.i386.rpm
php-ldap-4.1.2-2.20.i386.rpm
php-manual-4.1.2-2.20.i386.rpm
php-mysql-4.1.2-2.20.i386.rpm
php-odbc-4.1.2-2.20.i386.rpm
php-pgsql-4.1.2-2.20.i386.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-2006-7228
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1660
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 <secalert@redhat.com>.  More contact
details at https://www.redhat.com/security/team/contact/

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

iD8DBQFIfcZ8XlSAg2UNWIIRApNUAJ4zkxoEST7BV0cROBSgYRsSWL5WIACdHcEX
RglnYO1z72hpkPRvdnwTp8Q=
=bKAh
-----END PGP SIGNATURE-----


-- 
Enterprise-watch-list mailing list
Enterprise-watch-list@redhat.com
https://www.redhat.com/mailman/listinfo/enterprise-watch-list

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2014, SecurityGlobal.net LLC