CS:GO : From Zero to 0day
The CS:GO client trusted a server-controlled value to decide whether it was a privileged single-player server, and combined with three other logic flaws (extension stripping in fast_dl, arbitrary text file write via con_logfile, and a fallback to insecure mode when DLL verification fails), an attacker could achieve remote code execution on a connecting client. The chain let a malicious server execute privileged commands, download a malicious DLL, overwrite gameinfo.txt, and corrupt client.dll to force insecure mode, leading to DLL loading and code execution.
Valve (CS:GO)