http://wordpress.org/support/topic/154571?replies=19
Found the fix here!
I got it. At least, I found out what was causing this for me.
I was getting close in my last post, but it wasn't that spam was being appended... it was that there was a spam active_plugins item in the options table.
There was a nefarious active_plugin in the database. It looked something like this: a:1:{s:5:./././././././././././././././././././././tmp/upl52653.jpg
The post.php file calls wp-settings.php which tries to cycle through all of the active plugins. When it hit that one, it broke down. Once I pulled that entry out of the database, it is working great.
Now, im pretty sure this entry was the result of a site compromise, because that filename just happens to match the title of a couple of spam posts that I also dug up. They had that jpg name as the title, and hundreds of spam links in a left: -2227px top: -3337px
div.
In looking around, it seems that hack could have been the result of an exploit in the 2.0 version of Wordpress that was installed at the time. Im hoping that with 2.5, this security issue will no longer be a risk.
SO, this solved my problem, I hope it solves yours: Look in your wp_settings table for any active_plugins that don't look right and remove them.
I hope this helps!
Brad