Multiple vulnerabilities have been identified in PHP, which could be exploited by attackers to execute arbitrary commands or cause a denial of service.
The first issue is due to a buffer overflow error in the "wordwrap()" function that does not properly validate user-supplied data, which could be exploited by remote attackers or malicious users to execute arbitrary commands via a PHP script that uses the affected function.
The second flaw is due to an error in the "array_fill()" function that does not properly handle an overly large "num" argument, which could be exploited by attackers to exhaust all available memory resources on a system where a large "memory_limit" value is specified in "php.ini".
The third vulnerability is due to an input validation error in the "substr_compare()" function that does not validate the "length" argument before being passed to the "zend_binary_strncmp()" and "zend_binary_strcasecmp()" functions, which could be exploited by attackers to cause a denial of service.
The fourth issue is due to an error in the "zend_hash_del_key_or_index()" function when deleting elements, which could be exploited by attackers to cause the "unset()" function to not unset certain variables properly.
Credits
Vulnerabilities reported by Leon Juranic and Stefan Esser
ChangeLog
2006-04-24 : Initial release
2006-05-05 : Updated Solution (PHP5)
2006-08-03 : Updated Solution (PHP4)
2006-08-07 : Additional vulnerability
Vulnerability Management
Subscribe to FrSIRT VNS and receive real-time e-mail and SMS alerts when new vulnerabilities, exploits, or patches relevant to your systems and network configurations are available.
Feedback
If you have additional information or corrections for this security advisory please submit them via our contact form or by email to updates@frsirt.com.