The imap_body function in PHP before 4.4.4 does not implement safemode or open_basedir checks, which allows local users to read arbitrary files or list arbitrary directory contents.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2006-7183
http://us2.php.net/ChangeLog-4.php#4.4.4