RCE vulnerability, short for “remote code execution” vulnerability, is any exploitable security issue that allows cyber attackers to run their own malicious code on a target network or system. As a result, they can take control of the system and perform actions that let them steal data, install malware, or disrupt operations.

These vulnerabilities may be similar in concept to those found in armed forces’ aerobots or unmanned aerial vehicles (UAVs), which are guided by remote control and can be used to destroy targets or perform reconnaissance.

The vulnerabilities pose a significant threat to organizations, as they can significantly expand attack surfaces. In fact, out of more than 240,000 security issues on the Common Vulnerabilities and Exposures (CVE) list, more than 500 are either RCE vulnerabilities or lead to them.

Read More about an RCE Vulnerability

Learn more about the vulnerabilities below.

How Does an RCE Vulnerability Work?

The first step in an RCE attack is identifying a vulnerable parameter in an external-facing asset like a web application. Attackers often scan the Internet for applications that use vulnerable programming languages or frameworks or have known security flaws. Once a vulnerable application is found, the attackers can begin crafting a malicious payload.

A payload is a piece of code or script the attackers want to execute on a server. It can be a simple command to list files, a script that steals sensitive data, or even a backdoor that allows attackers to maintain persistent access.

The attackers then send a GET request to a vulnerable URL, including the malicious payload as the parameter value. For example, the following URL’s cmd value is vulnerable to RCE.

http://example.com/vulnerable_page.php?cmd=[value]

If the web application processes the cmd parameter without proper validation or sanitization, attackers can inject malicious code, so it would look like this:

http://example.com/vulnerable_page.php?cmd=[malicious code]

If the server processes the payload without proper security measures, the attackers’ code will be executed on the server. This scenario can give the attackers complete control of the system, allowing them to perform various malicious actions.

How RCE Vulnerability Works

What Are the Common RCE Parameters?

We talked about how attackers can exploit the cmd parameter. There are dozens of other parameters they can exploit.

The Open Worldwide Application Security Project (OWASP) published a list of the top 25 GET-based RCE parameters. These parameters refer to values passed to a web server as part of a GET request. These parameters are typically included in the URL after a question mark (?)  (e.g., http://example.com/search?cmd=delete).

OWASP Top 25 RCE Parameters

OWASP listed the following parameters that attackers commonly manipulate.

ParameterDescriptionParameterDescription
cmdOften used to execute commands or scriptsloadUsed to load files or modules
execTypically used to execute external commands or programsprocessRelated to process management, can be vulnerable if not properly controlled
commandSimilar to cmd and exec, used to execute commandsstepMay be used to step through code or perform specific actions
executeAnother term for executing commands or scriptsreadUsed to read data from files or other sources
pingOften used to test network connectivity, but can be exploited for RCE if not properly sanitizedfunctionUsed to call functions
queryUsed to query data, but can be vulnerable to injection attacks if not handled correctlyreqRepresents the HTTP request object, which can be used to process user-provided inputs or interact with other parts of an application
jumpMay be used to jump to specific code locations or execute functionsfeatureMay be used to enable or disable features
codeUsed to execute code or scriptsexeShort for “executable,” used to execute programs
regRelated to registry operations, can be vulnerable if not properly sanitizedmoduleUsed to load or unload modules
doOften used to perform actions or execute functionspayloadA term often used to describe malicious code that is injected into a system
funcUsed to call functionsrunUsed to execute commands or scripts
argUsed to pass arguments to functions or commandsprintUsed to print outputs via a console or file
optionUsed to specify options or settings

What Are Examples of RCE Vulnerabilities ?

As previously mentioned, there are hundreds of RCE vulnerabilities. Here are some examples. 

Ivanti Endpoint Manager (EPM) Structured Query Language (SQL) Injection Vulnerability (CVE-2024-29824)

Threat actors have been known to take advantage of several RCE vulnerabilities. One recent example is CVE-2024-29824. This critical vulnerability in the software’s handling of user inputs or network requests allows unauthenticated attackers to execute arbitrary code on unpatched systems. In October 2024, the Cybersecurity and Infrastructure Security Agency (CISA) warned that attackers are actively exploiting this vulnerability.

Fortinet Multiple Products Format String Vulnerability (CVE-2024-23113)

Another critical vulnerability CISA warned organizations about is CVE-2024-23113, a security flaw in specific Fortinet product versions. The issue arises from how the software processes externally controlled format strings, a particular type of string that can be used to format data in a specific way. When a format string is not properly controlled or validated, it can be exploited to inject malicious code or commands.

CISA required federal agencies to mitigate these two vulnerabilities within three weeks of the warning.

 Log4Shell Vulnerability (CVE-2021-44228) 

Another well-known example of an RCE vulnerability is the Log4Shell vulnerability that affected systems using Apache Log4j. The security flaw was severe because it affected several assets of organizations across various industries. To put it into perspective, the  Log4j framework is widely used in enterprise software, web applications, and cloud platforms.

—

RCE vulnerabilities are just some of the security issues that security teams must be aware of when managing their entire attack surface. These are usually detected automatically through advanced vulnerability scanning methods. 

Key Takeaways

Sources

  • https://www.checkpoint.com/cyber-hub/cyber-security/what-is-remote-code-execution-rce/#
  • https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-215a
  • https://www.cloudflare.com/learning/security/what-is-remote-code-execution/
  • https://www.sciencedirect.com/topics/computer-science/remote-code-execution