← Lab /Security & privacy

Splunk Enterprise on AWS vulnerable to pre-auth RCE via PostgreSQL sidecar API

Splunk Enterprise installations on AWS allow unauthenticated attackers to achieve remote code execution by abusing the PostgreSQL sidecar service backup and restore endpoints.

Security & privacy watchTowr Labs 12 Jun 2026 Disclosure Prototype evidence

Published as “Why Use App-Level Auth When Every Database Has Auth? (Splunk Enterprise CVE-2026-20253 Pre-Auth RCE)”

Why it matters

Unauthenticated attackers can achieve remote code execution on vulnerable Splunk Enterprise deployments, requiring immediate mitigation.

Summary

The authors examined Splunk Enterprise on AWS and discovered that its PostgreSQL sidecar service exposes unauthenticated HTTP endpoints (/v1/postgres/recovery/backup and /restore). By sending crafted JSON requests they could create arbitrary files and later trigger PostgreSQL commands that write attacker-controlled content, leading to full remote code execution as the splunk user. The exploit was demonstrated on a default AWS deployment and a detection script was released.

What they found 2

  1. Splunk Enterprise on AWS is vulnerable out of the box

    “Tl;dr Splunk Enterprise on AWS is vulnerable out of the box.”

  2. The PostgreSQL sidecar service endpoint lacks authentication controls

    “The vulnerability exists because the PostgreSQL sidecar service endpoint lacks authentication controls, allowing any network-reachable user to invoke file operations without credentials.”

Caveats 2

  • the dump file will always be empty as pg_dump has nothing to dump.
  • We’re not able to successfully authenticate to the local database, we are not able to access any database to dump it.

What’s new here 4

  • Identified unauthenticated PostgreSQL sidecar API on Splunk Enterprise on AWS.
  • Demonstrated arbitrary file creation and overwrite via the backup endpoint.
  • Chained backup and restore endpoints with PostgreSQL connection-string injection to achieve remote code execution.
  • Provided a public detection script for the vulnerability.

In the news