CVE-2026-53572
KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping
Also known as GHSA-6w3m-4hhp-775q, GO-2026-5940
Mitigation
- Upgrade github.com/kedacore/keda/v2 to 2.20.0 or later.
Who should check
- Projects that depend on Go package github.com/kedacore/keda/v2 (< 2.20.0)
- Projects that depend on Go package github.com/kedacore/keda
- Anyone running kedacore keda < 2.20.0
Vulnerability facts
- Affected
- github.com/kedacore/keda/v2 < 2.20.0; github.com/kedacore/keda
- Fixed in
- 2.20.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.40% chance of exploitation in 30 days (percentile 25, 2026-11-26)
- CWE
- CWE-74, CWE-89
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/kedacore/keda/v2 | < 2.20.0 | 2.20.0 | osv |
| Go github.com/kedacore/keda | — | — | osv |
| kedacore keda | < 2.20.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-53572. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-53572.md Affected: github.com/kedacore/keda/v2 < 2.20.0; github.com/kedacore/keda Fixed in: 2.20.0 Steps: 1. Search this machine and project for github.com/kedacore/keda/v2 (Go), github.com/kedacore/keda (Go), kedacore keda: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-53572 being exploited?
There is no confirmed exploitation: CVE-2026-53572 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-53572?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-53572?
github.com/kedacore/keda/v2 < 2.20.0; github.com/kedacore/keda.
Is there a fix for CVE-2026-53572?
Yes. Fixed in 2.20.0. Upgrade github.com/kedacore/keda/v2 to 2.20.0 or later.
How do I check if I'm affected by CVE-2026-53572?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.