Remote code execution is a security vulnerability that allows attackers to run arbitrary code on a remote machine, whether connected over public or private networks. Vulnerabilities that lead to remote code execution are often rated a critical vulnerability.