Skip to main content
← All vulnerabilities
CVE-2026-53572GO-2026-5940GHSA-6W3M-4HHP-775Q

KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.20.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

KEDA is a Kubernetes-based Event Driven Autoscaling component. Prior to 2.20.0, pkg/scalers/postgresql_scaler.go constructs libpq-style connection strings from tenant-controlled host, port, userName, dbName, sslmode, and password values, while escapePostgreConnectionParameter() only quotes values containing a literal space. Tabs, newlines, carriage returns, form feeds, vertical tabs, quotes, and backslashes can therefore create additional key-value tokens when pgx parses the string. An attacker able to create or modify a TriggerAuthentication or ScaledObject can inject host or sslmode parameters, redirect the database connection to an attacker-controlled server, expose credentials, or disable intended TLS protection. This issue is fixed in version 2.20.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • kedacore keda

    fixed in 2.20.0

  • github.com/kedacore/kedaGo

    All versions

  • github.com/kedacore/keda/v2Go

    fixed in 2.20.0

References 5

GitHub · kedacore/keda