{"id":"CVE-2026-116249","aliases":[],"cve":{"records":[{"id":"CVE-2026-116249","source":"PostgreSQL","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-25T16:26:16.420Z","published":"2026-10-30T19:55:18.121Z","modified":"2026-10-30T19:55:18.121Z"}],"publishers":[{"name":"PostgreSQL","role":"CNA","organizationId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","modified":"2026-10-30T19:55:18.121Z"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/10650","tags":["issue-tracking"],"source":"PostgreSQL"},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2","tags":["patch"],"source":"PostgreSQL"}],"weaknesses":[{"id":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","source":"PostgreSQL"},{"id":"CWE-73","description":"CWE-73 External Control of File Name or Path","source":"PostgreSQL"}],"applicability":[],"prioritization":[]},"title":"pgAdmin 4: Connection file paths and parameter keys escape the user's storage directory","titleSource":"PostgreSQL","descriptionSource":"PostgreSQL","description":"In server mode pgAdmin 4 resolves a server's password file, SSL certificate, key, CRL and SSH tunnel identity file relative to the user's storage directory, but get_complete_file_path() only stripped leading slashes before joining the two. A path such as \"../<another user>/.pgpass\", set through the server dialog, the REST API or a servers.json import, therefore named another user's file, and connecting used that user's saved passwords, client certificate or SSH key. The sslkeylogfile connection parameter was passed to libpq unchanged, so a path outside storage let libpq create or append a file as the account running pgAdmin.\n\nmake_conninfo() also quoted connection parameter values but not their names, so a crafted parameter name could smuggle additional keyword=value pairs past these checks.\n\nThe fix requires the resolved path, with symbolic links followed, to stay inside the user's storage directory or the named shared storage directory, confines sslkeylogfile the same way, and accepts only exact libpq keywords as connection parameter names. A refused path or keyword is reported instead of letting libpq fall back to a default.\n\nThis issue affects pgAdmin 4: before 9.19.","score":8.4,"severity":"high","published":"2026-10-30T19:55:18.121Z","modified":"2026-10-30T19:55:18.121Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"pgadmin.org","name":"pgAdmin 4","platforms":[],"versions":[{"version":"0","status":"affected","lessThan":"9.19","versionType":"custom"}],"defaultStatus":"unaffected","cpes":[],"source":"PostgreSQL","url":"https://www.cve.org/CVERecord?id=CVE-2026-116249"}],"remediation":[],"references":["https://github.com/pgadmin-org/pgadmin4/issues/10650","https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2"],"sources":[{"name":"CVE","id":"CVE-2026-116249","modified":"2026-10-30T19:55:18.121Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-116249"}],"assessments":[{"source":"PostgreSQL","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","score":8.4},{"source":"PostgreSQL","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:H/SI:H/SA:N","score":7.2}],"sourceAffected":[],"observedAt":"2026-10-30T20:24:47.353Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T09:10:30.844Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":{"text":"pgAdmin 4, before version 9.19, is affected by a path traversal vulnerability, allowing an attacker with access to the server dialog, REST API, or servers.json import to potentially access another user's files. The issue arises from improper path resolution and quoting of connection parameter values.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-10-31T05:16:12.605Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-116249"}]}}