Skip to content
RCE Write-up Intermediate

Critical Splunk RCE Vulnerability (CVE-2026–20163) Lets Attacke

Splunk's REST API file upload preview endpoint fails to sanitise the unarchive_cmd parameter, allowing an authenticated user with the edit_cmd capability to inject and execute arbitrary shell commands on the host. This gives such an attacker full control of the Splunk server.

EternalSec Follow

Published on medium.com

If exploited successfully, an attacker could execute arbitrary shell commands directly on the underlying host server — effectively gaining control of your infrastructure.

EternalSec, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The REST API file upload preview endpoint passes the unarchive_cmd parameter into a shell command without proper sanitisation.

Impact

An attacker with the edit_cmd capability could execute arbitrary shell commands on the Splunk host, potentially compromising the SIEM and the visibility it provides.

What the attacker needed

An account with the edit_cmd capability

The fix

Splunk released patches; upgrade to a fixed version, or as a workaround remove the edit_cmd capability from all user roles.

How it was found

  1. Log in with a role that has the edit_cmd capability.
  2. Send a file upload request to the preview endpoint.
  3. Supply a crafted unarchive_cmd value that contains shell commands.
  4. The server runs the injected commands during the preview phase.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Splunk is software that collects and analyses security logs. A part of it that handles file uploads passes a user-supplied setting straight into a system command without cleaning it first, so someone with a powerful account can sneak their own commands in and run them on the server. The attacker needs an account with a special permission called edit_cmd, so a normal low-privilege user cannot do it.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.