- Issued:
- 2007-10-23
- Updated:
- 2007-10-23
RHSA-2007:0917 - Security Advisory
Synopsis
Moderate: php security update
Type/Severity
Security Advisory: Moderate
Topic
Updated PHP packages that fix several security issues are now available for
Red Hat Application Stack.
This update has been rated as having moderate security impact by the Red
Hat Security Response Team.
Description
PHP is an HTML-embedded scripting language commonly used with the Apache
HTTP Web server.
These updated packages address the following vulnerabilities:
Various integer overflow flaws were found in the PHP gd extension. A
script that could be forced to resize images from an untrusted source could
possibly allow a remote attacker to execute arbitrary code as the apache
user. (CVE-2007-3996)
A previous security update introduced a bug into PHP session cookie
handling. This could allow an attacker to stop a victim from viewing a
vulnerable web site if the victim has first visited a malicious web page
under the control of the attacker, and that page can set a cookie for the
vulnerable web site. (CVE-2007-4670)
A flaw was found in the PHP money_format function. If a remote attacker
was able to pass arbitrary data to the money_format function this could
possibly result in an information leak or denial of service. Note that is
is unusual for a PHP script to pass user-supplied data to the money_format
function. (CVE-2007-4658)
A flaw was found in the PHP wordwrap function. If a remote attacker was
able to pass arbitrary data to the wordwrap function this could possibly
result in a denial of service. (CVE-2007-3998)
A bug was found in PHP session cookie handling. This could allow an
attacker to create a cross-site cookie insertion attack if a victim follows
an untrusted carefully-crafted URL. (CVE-2007-3799)
A flaw was found in handling of dynamic changes to global variables. A
script which used certain functions which change global variables could
be forced to enable the register_globals configuration option, possibly
resulting in global variable injection. (CVE-2007-4659)
An integer overflow flaw was found in the PHP chunk_split function. If a
remote attacker was able to pass arbitrary data to the third argument of
chunk_split they could possibly execute arbitrary code as the apache user.
Note that it is unusual for a PHP script to use the chunk_split function
with a user-supplied third argument. (CVE-2007-4661)
Users of PHP should upgrade to these updated packages which contain
backported patches to correct these issues.
Solution
Before applying this update, make sure all previously released errata
relevant to your system have been applied.
To update all RPMs for your particular architecture, run:
rpm -Fvh [filenames]
where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains
the desired RPMs.
Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:
up2date
This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.
Affected Products
- Red Hat Application Stack 2 (for RHEL Server) 2 x86_64
- Red Hat Application Stack 2 (for RHEL Server) 2 i386
Fixes
- BZ - 250726 - CVE-2007-3799 php cross-site cookie insertion
- BZ - 276081 - CVE-2007-3998 php floating point exception inside wordwrap
- BZ - 276531 - CVE-2007-4659 php zend_alter_ini_entry() memory_limit interruption
- BZ - 278011 - CVE-2007-4658 php money_format format string issue
- BZ - 278031 - CVE-2007-3996 php multiple integer overflows in gd
- BZ - 278041 - CVE-2007-4670 php malformed cookie handling
- BZ - 278161 - CVE-2007-4661 php size calculation in chunk_split
CVEs
The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.