Skip to content

CVE-2026-53572 KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping

MediumCVSS 5.9 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
Kubernetes

Description

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.

Upgrade path

3 packages: 0 fixed, 2 partially fixed.

PackageAffectedFixed inStatus
azure linux keda(Azure Linux 3.0) < 2.14.1-22; All versions 2.14.1-22 Partially fixed
kedacore keda(Go) < 2.20.0; All versions 2.20.0 Partially fixed
kedacore keda = < 2.20.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
kedacore keda(Go) < 2.20.0 2.20.0
kedacore keda(Go) All versions No fix listed
kedacore keda = < 2.20.0 No fix listed
azure linux keda(Azure Linux:3.0) All versions No fix listed
azure linux keda(Azure Linux:3.0) < 2.14.1-22 2.14.1-22

References