{"id":"CVE-2026-53572","state":"PUBLISHED","title":"KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping","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.","publishedAt":"2026-08-21T20:11:56.479Z","updatedAt":"2026-08-25T17:13:43.120Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["kedacore keda"],"affected":[{"vendor":"kedacore","product":"keda","versions":[{"version":"< 2.20.0","status":"affected"}]}],"references":["https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q","https://github.com/kedacore/keda/issues/7784","https://github.com/kedacore/keda/pull/7787","https://github.com/kedacore/keda/commit/703de9dec86cb25b6ecfa4948880a90487344d3f","https://github.com/kedacore/keda/releases/tag/v2.20.0"],"weaknesses":["CWE-74","CWE-89"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53572.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53572","state":"PUBLISHED","datePublished":"2026-08-21T20:11:56.479Z","dateUpdated":"2026-08-25T17:13:43.120Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-09T19:11:53.483Z"},"containers":{"cna":{"title":"KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping","descriptions":[{"lang":"en","value":"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":[{"vendor":"kedacore","product":"keda","versions":[{"version":"< 2.20.0","status":"affected"}]}],"references":[{"url":"https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q","name":"https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kedacore/keda/issues/7784","name":"https://github.com/kedacore/keda/issues/7784","tags":["x_refsource_MISC"]},{"url":"https://github.com/kedacore/keda/pull/7787","name":"https://github.com/kedacore/keda/pull/7787","tags":["x_refsource_MISC"]},{"url":"https://github.com/kedacore/keda/commit/703de9dec86cb25b6ecfa4948880a90487344d3f","name":"https://github.com/kedacore/keda/commit/703de9dec86cb25b6ecfa4948880a90487344d3f","tags":["x_refsource_MISC"]},{"url":"https://github.com/kedacore/keda/releases/tag/v2.20.0","name":"https://github.com/kedacore/keda/releases/tag/v2.20.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-74","lang":"en","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-21T20:11:56.479Z"},"source":{"advisory":"GHSA-6w3m-4hhp-775q","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-25T17:13:16.119842Z","id":"CVE-2026-53572","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-25T17:13:43.120Z"}}]}}}