Vulnerability · Published Aug 21, 2026 · Assigned by GitHub_M
CVE-2026-53572KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping
Medium 5.9
In plain English
A medium-severity injection in keda from kedacore. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/kedacore/keda | no fix listed | GO-2026-5940 |
| Go | github.com/kedacore/keda/v2 | 2.20.0 | GHSA-6w3m-4hhp-775q |
| Go | github.com/kedacore/keda/v2 | 2.20.0 | GO-2026-5940 |
Affected products (as reported)
Weakness: CWE-74, CWE-89 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
References
- https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q x_refsource_CONFIRM
- https://github.com/kedacore/keda/issues/7784 x_refsource_MISC
- https://github.com/kedacore/keda/pull/7787 x_refsource_MISC
- https://github.com/kedacore/keda/commit/703de9dec86cb25b6ecfa4948880a90487344d3f x_refsource_MISC
- https://github.com/kedacore/keda/releases/tag/v2.20.0 x_refsource_MISC