The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote attackers to execute arbitrary PHP code via the orderby parameter (aka sortby variable) in a query_engine action to cmd.php, as exploited in the wild in October 2011.
http://www.securityfocus.com/bid/50331
http://www.debian.org/security/2011/dsa-2333
http://sourceforge.net/tracker/index.php?func=detail&aid=3417184&group_id=61828&atid=498546
http://secunia.com/advisories/46672
http://secunia.com/advisories/46551
http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page