KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kedacore | keda | before 2.20.0 | 2.20.0 | Patch available | CNA |
| — | github.com/kedacore/keda/v2 (Go) | before 2.20.0 | 2.20.0 | Patch available | GHSA-6w3m-4hhp-775q |
- keda Vendorkedacore Affected before 2.20.0 Fixed in 2.20.0 Patch available CNA
- github.com/kedacore/keda/v2 (Go) Vendor— Affected before 2.20.0 Fixed in 2.20.0 Patch available GHSA-6w3m-4hhp-775q
Remediation
- Fix · CNA keda (kedacore) Fixed in 2.20.0
- Fix · GHSA-6w3m-4hhp-775q github.com/kedacore/keda/v2 (Go) Fixed in 2.20.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53572
- 2026-10-03 Alias added: GHSA-6w3m-4hhp-775q
References
Other 6
- 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
- https://github.com/kedacore/keda
More kedacore vulnerabilities
- TI-2026-74325 Privilege escalation in KEDA lets namespace admins gain cluster admin CVSS 3.1CRITICAL 9.9
- TI-2025-42006 KEDA has Arbitrary File Read via Insufficient Path Validation in HashiCorp Vault Service Account Credential CVSS 4.0HIGH 8.2
Sources
- CVE-2026-53572 · CVE Program
- CVE-2026-53572 · NVD
- FIRST EPSS
- GHSA-6w3m-4hhp-775q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences