{"id":"CVE-2026-53572","published":"2026-08-21T20:11:56Z","modified":"2026-08-25T17:13:43Z","title":"KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping","vendor":"kedacore","product":"keda","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00386,"percentile":0.33496,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kedacore/keda/issues/7784","tags":["x_refsource_MISC"]},{"url":"https://github.com/kedacore/keda/pull/7787","tags":["x_refsource_MISC"]},{"url":"https://github.com/kedacore/keda/commit/703de9dec86cb25b6ecfa4948880a90487344d3f","tags":["x_refsource_MISC"]},{"url":"https://github.com/kedacore/keda/releases/tag/v2.20.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":6.7},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"kedacore","affectedVersions":[{"vendor":"kedacore","product":"keda","versions":["< 2.20.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T17:13:16.119842Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/kedacore/keda/v2","vulnerableRanges":["<2.20.0"],"patched":["2.20.0"],"from":["GHSA-6w3m-4hhp-775q","GO-2026-5940"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/kedacore/keda","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5940"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-64131","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-68476","published":"2025-12-22","fixed":"2.18.3","kev":false,"link":{"from":"CVE-2025-68476","to":"CVE-2026-53572","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/kedacore/keda/v2","fromFixed":"2.18.3","toFixed":"2.20.0","daysApart":242}]}},{"cve":"CVE-2026-53572","published":"2026-08-21","fixed":"2.20.0","kev":false},{"cve":"CVE-2026-77524","published":"2026-10-14","fixed":"2.21.0","kev":false,"link":{"from":"CVE-2026-53572","to":"CVE-2026-77524","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/kedacore/keda/v2","fromFixed":"2.20.0","toFixed":"2.21.0","daysApart":54}]}}],"package":"Go:github.com/kedacore/keda/v2"}}