PHP 4.0.4pl1 and 4.0.5 in safe mode allows remote attackers to read and write files owned by the web server UID by uploading a PHP script that uses the error_log function to access the files.
http://www.redhat.com/support/errata/RHSA-2002-035.html
http://www.php.net/do_download.php?download_file=php-4.1.2.tar.gz