Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2190 to the following vulnerability: The (1) trim, (2) ltrim, (3) rtrim, and (4) substr_replace functions in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 allow context-dependent attackers to obtain sensitive information (memory contents) by causing a userspace interruption of an internal function, related to the call time pass by reference feature. References: http://www.php-security.org/2010/05/30/mops-2010-047-php-trimltrimrtrim-interruption-information-leak-vulnerability/index.html http://www.php-security.org/2010/05/30/mops-2010-048-php-substr_replace-interruption-information-leak-vulnerability/index.html
Upstream patch added to Zend engine's zend_parse_parameters to address MOPS-2010-006 addcslashes interruption vulnerability (bug #617578, comment #2) addresses trim MOPS-2010-047 too: http://svn.php.net/viewvc?view=revision&revision=298945 This fix is included in 5.3.3.
Created attachment 434064 [details] MOPS-2010-047 reproducer
Created attachment 434065 [details] MOPS-2010-048 reproducer
Upstream commit for the substr_replace issue: http://svn.php.net/viewvc?view=revision&revision=299242 Fixed in 5.3.3 too: http://www.php.net/releases/5_3_3.php
Closing this, see bug #617578, comment #3 for more detailed explanation. *** This bug has been marked as a duplicate of bug 169857 ***
Statement: Red Hat does not consider interruption issues allowing safe_mode / open_basedir restriction bypass to be security sensitive. For more details see https://bugzilla.redhat.com/show_bug.cgi?id=169857#c1 and http://www.php.net/security-note.php