Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-53572 EUVD-2026-64131GHSA-6w3m-4hhp-775qGO-2026-5940

KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping

Published Aug 21, 2026 · Updated Aug 25, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
kedacore keda < 2.20.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 keda No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling keda-2.19 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/kedacore/keda all versions — GO-2026-5940
Go github.com/kedacore/keda/v2 < 2.20.0 2.20.0 GHSA-6w3m-4hhp-775q

Advisories 1

References