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.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2011-4027
http://www.securityfocus.com/bid/50331
http://www.exploit-db.com/exploits/18021/
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
http://openwall.com/lists/oss-security/2011/10/25/2