VYPR
advisoryPublished Jun 12, 2026· Updated Jun 19, 2026· 6 sources

CVE-2026-20253: Critical Pre-Auth RCE in Splunk Enterprise PostgreSQL Sidecar Hits AWS Deployments

WatchTowr Labs discloses CVE-2026-20253, a pre-authentication remote code execution vulnerability in the PostgreSQL Sidecar Service that ships enabled by default in Splunk Enterprise on AWS.

Security researchers at watchTowr Labs have published a detailed technical analysis of CVE-2026-20253, a pre-authentication remote code execution vulnerability in Splunk Enterprise versions 10 and above. The flaw resides in the PostgreSQL Sidecar Service, a component that Splunk introduced in version 10 to offload certain data management tasks. While the service binds only to the loopback interface on port 5435, the researchers demonstrated that "localhost only" does not prevent exploitation when an attacker can reach the main Splunk web application running on port 8000. The vulnerability carries a CVSS score of 9.8, indicating critical severity, yet the official advisory did not explicitly confirm RCE capability.

The PostgreSQL Sidecar Service is an optional component in on-premise Splunk Enterprise installations—on Windows it is not installed by default, and on Linux it is installed but not enabled by default. However, on **Splunk Enterprise deployments running on AWS, the service is both installed and enabled by default**, making a vast number of cloud-hosted Splunk instances vulnerable out of the box. According to the advisory, all Splunk Enterprise versions 10.x are affected.

WatchTowr began by locating the vulnerable service binary, splunk-postgres, a 66 MB Go-compiled binary listening on ports 5435 and 33669. Using Splunk's own documentation, they discovered the service exposes several HTTP endpoints under /v1/postgres/, including /v1/postgres/recovery/backup and /v1/postgres/recovery/restore. The documentation revealed that the backup endpoint accepts a backupFile parameter and a database parameter, immediately suggesting file-write and manipulation capabilities.

To bypass the loopback-only restriction, the researchers turned to an SSRF vector. They discovered that an authenticated user could exploit a feature in the main Splunk web application (port 8000) to forward raw HTTP requests to the PostgreSQL Sidecar Service on localhost. Since the main application is exposed to the network, an attacker who can trick an authenticated Splunk admin—or leverage another vulnerability to gain session access—can tunnel commands through the web app directly to the vulnerable PostgreSQL endpoint. This effectively renders the loopback restriction moot.

The analysis confirmed that the /v1/postgres/recovery/restore endpoint does not check user identity or authorization, and combined with the file-write primitive from the backup endpoint, an attacker can write arbitrary files to the filesystem, leading to remote code execution as the Splunk user. The proof-of-concept shows a chain: first write a malicious shared object or script to disk via the backup endpoint, then trigger its execution through the restore functionality. The SSRF pivot through the web interface eliminates the need for local network access.

Splunk Enterprise customers, especially those running on AWS, should apply the security update immediately. For environments where patching is not immediate, Splunk recommends disabling the PostgreSQL Sidecar Service if it is not required, or restricting access to the Splunk web interface to trusted IPs only. The discovery highlights a recurring pattern in modern software architecture: sidecar services that are meant to be internal helpers often expose unauthenticated APIs on loopback, only for researchers to find HTTP-level SSRF or proxy abuse that makes those APIs reachable from the outside. WatchTowr has released a full technical write-up and indicators of compromise, and urged organizations to treat this vulnerability as actively exploitable.

The new article from Cyber Security News provides additional technical depth on the exploitation chain, detailing how watchTowr Labs chained directory traversal, PostgreSQL connection string injection, and .pgpass credential abuse to achieve full arbitrary file write and then RCE by overwriting a Splunk Python script. It also emphasizes that the PostgreSQL Sidecar Service is enabled by default on AWS deployments, making cloud instances especially exposed, and includes specific detection and mitigation recommendations such as monitoring internal API endpoints and reviewing file integrity for critical Splunk components.

WatchTowr Labs published a full exploit chain for CVE-2026-20253 on June 13, demonstrating how attackers can achieve pre-authenticated remote code execution by chaining the /backup and /restore endpoints to overwrite a Python script executed by Splunk. The researchers detailed the attack flow: connecting to an attacker-controlled database, dumping its contents to an arbitrary file, then restoring the malicious dump to trigger SQL queries that write a payload to the filesystem. Although no in-the-wild exploitation has been observed, the public availability of technical specifics raises the risk of opportunistic attacks, urging administrators to apply patches immediately.

CISA has now added CVE-2026-20253 to its Known Exploited Vulnerabilities (KEV) Catalog, confirming active exploitation of the missing authentication flaw in Splunk Enterprise. The agency's Binding Operational Directive 26-04 requires Federal Civilian Executive Branch agencies to prioritize remediation of this vulnerability on publicly exposed assets that grant total control post-exploitation. CISA urges all organizations to adopt risk-based vulnerability management and treat this CVE as a high-priority patch target.

CISA has now added CVE-2026-20253 to its Known Exploited Vulnerabilities catalog, ordering federal civilian agencies to apply mitigations by June 21, 2026. Resecurity confirmed in-the-wild exploitation alongside the vendor, warning that the flaw can lead to full system compromise. Indicators of compromise include path traversal sequences (../) in requests and suspicious PostgreSQL connection parameters, which organizations should review immediately.

CISA has added CVE-2026-20253 to its Known Exploited Vulnerabilities catalog, confirming active exploitation and ordering federal agencies to patch by Sunday under Binding Operational Directive 26-04. Splunk updated its advisory on June 18 after its PSIRT team became aware of limited exploitation in the wild. Shadowserver reports over 1,400 internet-exposed Splunk instances, with most in North America and Europe, though the number currently under attack remains unclear. Splunk recommends disabling the PostgreSQL sidecar service as an interim mitigation, but warns this will break Edge Processor, OpAmp, or SPL2 data pipelines.

Synthesized by Vypr AI