RHSA-2008:0546: Moderate: php security update

Published Jul 16, 2008
·
Updated

PHP is an HTML-embedded scripting language commonly used with the ApacheHTTP Web server.It was discovered that the PHP escapeshellcmd() function did not properlyescape multi-byte characters which are not valid in the locale used by thescript. This could allow an attacker to bypass quoting restrictions imposedby escapeshellcmd() and execute arbitrary commands if the PHP script wasusing certain locales. Scripts using the default UTF-8 locale are notaffected by this issue. (CVE-2008-2051)The PHP functions htmlentities() and htmlspecialchars() did not properlyrecognize partial multi-byte sequences. Certain sequences of bytes could bepassed through these functions without being correctly HTML-escaped.Depending on the browser being used, an attacker could use this flaw toconduct cross-site scripting attacks. (CVE-2007-5898)A PHP script which used the transparent session ID configuration option, orwhich used the outputaddrewritevar() function, could leak sessionidentifiers to external web sites. If a page included an HTML form with anACTION attribute referencing a non-local URL, the user's session ID wouldbe included in the form data passed to that URL. (CVE-2007-5899)It was discovered that PHP did not properly seed its pseudo-random numbergenerator used by functions such as rand() and mtrand(), possibly allowingan attacker to easily predict the generated pseudo-random values.(CVE-2008-2107, CVE-2008-2108)Integer overflow and memory requirements miscalculation issues werediscovered in the Perl-Compatible Regular Expression (PCRE) library used byPHP to process regular expressions. These issues could cause a crash, orpossibly execute an arbitrary code with the privileges of the PHP scriptthat processes regular expressions from untrusted sources. Note: PHPpackages shipped with Red Hat Enterprise Linux 2.1 did not use thesystem-level PCRE library. By default they used an embedded copy of thelibrary included with the PHP package. (CVE-2006-7228, CVE-2007-1660)Users of PHP should upgrade to these updated packages, which containbackported patches to correct these issues.

Affected Software

1 affected component
PHP PHP

Remediation

Event History

Jul 16, 2008
Advisory Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionAffected Software

Frequently Asked Questions

1

What is the severity of RHSA-2008:0546?

The severity of RHSA-2008:0546 is classified as moderate.

2

How do I fix RHSA-2008:0546?

To fix RHSA-2008:0546, apply the latest updates or patches provided for the affected PHP version.

3

What software versions are affected by RHSA-2008:0546?

RHSA-2008:0546 affects certain versions of PHP that utilize the escapeshellcmd() function.

4

What kind of exploitation is possible with RHSA-2008:0546?

Exploitation of RHSA-2008:0546 could allow an attacker to execute arbitrary commands through improperly escaped input.

5

Is RHSA-2008:0546 relevant to security best practices?

Yes, addressing RHSA-2008:0546 is essential for maintaining security best practices and preventing command injection vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203