Common Vulnerabilities and Exposures assigned an identifier CVE-2010-1917 to the following vulnerability: Stack consumption vulnerability in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 allows context-dependent attackers to cause a denial of service (PHP crash) via a crafted first argument to the fnmatch function, as demonstrated using a long string. References: [1] http://www.php-security.org/2010/05/11/mops-2010-021-php-fnmatch-stack-exhaustion-vulnerability/index.html [2] http://xforce.iss.net/xforce/xfdb/58585
Created attachment 433721 [details] Public MOPS-2010-021 reproducer
This issue affects the versions of the php package, as shipped with Red Hat Enterprise Linux 3, 4, and 5. This issue affects the versions of the php package, as shipped with Fedora release of 12 and 13.
Upstream patch: http://svn.php.net/viewvc?view=revision&revision=298881 This flaw is similar to CVE-2007-4782 (see bug #285881), which covered similar problem for string rather than pattern fnmatch() argument. Matching pattern is less likely to by exposed to untrusted inputs than string to match pattern against. As with the previous CVE, this is not really a PHP flaw, rather a PHP-exposed glibc unsafe alloca() use. PHP fix adds additional input argument size limits which works around this bug.
This issue has been addressed in following products: Red Hat Enterprise Linux 4 Red Hat Enterprise Linux 5 Via RHSA-2010:0919 https://rhn.redhat.com/errata/RHSA-2010-0919.html
Statement: This issue is not planned to be fixed in Red Hat Enterprise Linux 3 due to this product being in Production 3 of its maintenance life-cycle, where only qualified security errata of important and critical impact are addressed. For further information about the Errata Support Policy, visit: http://www.redhat.com/security/updates/errata