Stack-based buffer overflow in SFTP in freeSSHd 1.2.1 allows remote authenticated users to execute arbitrary code via a long directory name in an SSH_FXP_OPENDIR (aka opendir) command.
https://www.exploit-db.com/exploits/5751
https://www.exploit-db.com/exploits/5709
http://www.vupen.com/english/advisories/2008/1711/references
http://www.securitytracker.com/id?1020212
http://www.securityfocus.com/archive/1/493180/100/0/threaded