Explained · 2 min
What is remote code execution?
The worst kind of security hole: a stranger runs their own code on your computer, from far away.
Written by AI and checked against our editorial standards. Not reviewed by a human editor.
Remote code execution, often shortened to RCE, means that someone far away can make your computer run their own code. They do not need your password or a seat at your desk. Often it is enough to send the right data to a program that is open to the internet.
Think of it like this: a program is like a clerk who follows a list of instructions. Normally you can only hand the clerk forms to fill in. An RCE hole is a trick that makes the clerk read your form as a new instruction, and then do whatever it says.
A common cause is a program that writes data past the end of the memory it set aside. The security catalog CWE calls this an out-of-bounds write. If an attacker controls what spills over, they can sometimes change the program’s own instructions and make it run unexpected code.
Programs in languages like Java and Python are immune to this kind of spill, the security group OWASP explains. But there is one exception: the engine that runs the language. It is often written in faster, less protected code, so a bug there can still open the door.
A hole that needs no login is called unauthenticated or pre-auth. That is the worst case, because anyone who can reach the server can try.
Why it matters to you: when a security notice says “remote code execution”, treat it as urgent. Find out if you run the affected software, and update it first, before the smaller fixes.
Learn more: MITRE CWE-787: Out-of-bounds Write · OWASP: Buffer Overflow