Tom, Jeff explained it here: http://openacs.org/forums/message-view?message_id=182057
Once someone has an admin account on OpenACS he could install acs-developer-support and and execute code via the its tcl shell feature.
This is not restricted to just 5.1, I believe...