A memory corruption flaw exists in Threat Management Gateway (TMG) client. The function NSPLookupServiceNext fails to sanitize user-supplied input for specific requests made through TMG Firewall Client resulting in memory corruption. With a specially crafted request, a remote attacker can execute arbitrary code.