Multi-stage exploit would have enabled hackers to carry out remote code execution attacks on Discord users.