← Back to Pull requests

Add Splunk PostgreSQL sidecar unauthenticated file operation scanner (CVE-2026-20253) #21586

Open
unknown opened this pull request with 242 lines diff across 3 files
View on GitHub
unknown unknown commented on Jun 19, 2026 13:59 UTC
Author

Overview

Adds a detection module for CVE-2026-20253 (CVSS 9.8, CWE-306), an
unauthenticated file-operation flaw in the Splunk Enterprise 10.x PostgreSQL
sidecar service (SVD-2026-0603).

The sidecar (backing Edge Processor / OpAmp / SPL2 data pipelines) exposes a
recovery endpoint through Splunk Web,
POST /<locale>/splunkd/__raw/v1/postgres/recovery/backup, that performs no
authorization. An unauthenticated attacker can create/truncate arbitrary files,
which has been chained to RCE via PostgreSQL lo_export.

Affected: 10.0.0–10.0.6 (fixed 10.0.7) and 10.2.0–10.2.3 (fixed 10.2.4); 10.4.0+
and Splunk Cloud are unaffected.

This is detection only (mirrors the public watchTowr artifact); it never
creates, truncates, or reads a file. It POSTs to the endpoint with a non-Splunk
(Basic) Authorization header:

  • affected → HTTP 400 Failed to decode request (request passed the absent

  • authz check) → reported vulnerable
  • patched → HTTP 401 Authorization header must use Splunk token → not

  • vulnerable
  • otherwise → sidecar not present
  • The Basic header is required: an unauthenticated request returns 401 on both
    affected and patched builds, so it does not discriminate.

    Verification

    Lab: official splunk/splunk:10.2.3 (vulnerable) and :10.2.4 (patched)
    containers (the sidecar ships in the stock image; no extra config needed).

  • ruby -c passes; module loads in msfconsole

  • run against 10.2.3 → Vulnerable (HTTP 400 Failed to decode request)

  • run against 10.2.4 → Not vulnerable (HTTP 401, token required)
  • msf6 auxiliary(scanner/http/splunk_postgres_sidecar_scanner) > run
    [+] 127.0.0.1:18000 - Vulnerable: the PostgreSQL sidecar recovery endpoint accepted an unauthenticated request (CVE-2026-20253)
    [*] 127.0.0.1:28000 - Not vulnerable: the recovery endpoint requires a Splunk token (patched)
    

    Diff: 242 lines (+181 / -61) across 3 files Reviewer: kenlacroix Review duration: 236481m
    All Vouch review confidence checks passed
    Residual risk 0.38 = Change Risk (0.69) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.69 · 242 lines diff across 3 files
    0.69
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.329
    Sensitive Paths sensitive_paths
    0.069
    Real PR Conversation Timeline
    1 comments
    "Review active on #21586"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 44.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 69.0% (HIGH) · Higher = larger blast radius
    69.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.7% · Lower = rushed or shallow review
    44.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 38.1% · Moderate risk
    38.1%