Multiple buffer overflows in NEC SOCKS5 1.0 r11 and earlier allow remote attackers to cause a denial of service and possibly execute arbitrary code via a long username to (1) the GetString function in proxy.c for the SOCKS5 module or (2) the HandleS4Connection function in proxy.c for the SOCKS4 module.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2002-2346
http://www.securityfocus.com/bid/5147
http://www.securityfocus.com/bid/5145
http://www.iss.net/security_center/static/9485.php
http://archives.neohapsis.com/archives/bugtraq/2002-07/0033.html