{"id":"CVE-2026-116249","published":"2026-10-30T20:17:05Z","modified":"2026-11-09T15:37:32Z","title":"pgAdmin 4: Connection file paths and parameter keys escape the user's storage directory","vendor":"pgadmin.org","product":"pgAdmin 4","tier":"core","eol":null,"affectedVersions":[{"vendor":"pgadmin.org","product":"pgAdmin 4","versions":["< 9.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-06T16:19:30.753762Z","from":"CISA ADP","provenance":"source"},"nvdStatus":"Analyzed","description":{"text":"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.","provenance":"source","from":"NVD"},"summary":null,"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"NVD"},"epss":{"score":0.00237,"percentile":0.1482,"date":"2026-11-21","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":8,"pulses":[{"name":"Known_Cve | Nov 8, 2026 | Part 1/3","url":"https://otx.alienvault.com/pulse/6aef3b029d93097c770c01f5","created":"2026-11-07"},{"name":"Known_Cve | Nov 7, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6aede8f784dbfff6c3936472","created":"2026-11-06"},{"name":"Known_Cve | Nov 6, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6aec980ed720361a0a8ef4af","created":"2026-11-05"},{"name":"Known_Cve | Nov 5, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6aeb4640975e6631ab96b181","created":"2026-11-04"},{"name":"Known_Cve | Nov 4, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6ae9f4a534e5bab82408f0f2","created":"2026-11-03"},{"name":"Known_Cve | Nov 3, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/6ae8a2fbb750e3c9efe15713","created":"2026-11-02"},{"name":"Known_Cve | Nov 2, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/6ae751f170a9e6cbc092a3eb","created":"2026-11-01"},{"name":"Known_Cve | Nov 1, 2026 | Part 3/3","url":"https://otx.alienvault.com/pulse/6ae6008a90b86330de9ba693","created":"2026-10-31"}],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2","tags":["Patch","patch"]},{"url":"https://github.com/pgadmin-org/pgadmin4/issues/10650","tags":["Issue Tracking","Patch","issue-tracking"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2026-114390","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-114390","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-10-30","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116249","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":11.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":2.96,"detail":"percentile 0.1482"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":2.17,"detail":"8 pulses"},{"name":"CVSS severity","points":6.72,"detail":"base score 9.6"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-pgadmin-org-pgadmin-4-cve-2022-0959","parents":[{"from":"CVE-2024-4215","to":"CVE-2026-116249","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["web/pgadmin/browser/server_groups/servers/__init__.py","web/pgadmin/settings/__init__.py"],"commits":["https://github.com/pgadmin-org/pgadmin4/commit/f4761f55f7cf6d56d6c5129f921393b0b47fd976","https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2"],"basis":"shared function","functions":["create"]}]},{"from":"CVE-2026-17351","to":"CVE-2026-116249","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["web/pgadmin/utils/driver/psycopg3/connection.py"],"commits":["https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2","https://github.com/pgadmin-org/pgadmin4/commit/bf4792444446f0e7ab721d23cbd6bfe6afaa7a8b","https://github.com/pgadmin-org/pgadmin4/commit/ef76102bcd1cdb544eb9b4ef18d3382f22b76752"],"basis":"rarely changed file"}]},{"from":"CVE-2026-116242","to":"CVE-2026-116249","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["web/pgadmin/utils/driver/psycopg3/server_manager.py"],"commits":["https://github.com/pgadmin-org/pgadmin4/commit/d52fe4740eb1af89d940f2e412bd66a0a89f08bb","https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2"],"basis":"shared function","functions":["create_ssh_tunnel"]}]},{"from":"CVE-2026-116244","to":"CVE-2026-116249","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["web/pgadmin/misc/bgprocess/processes.py","web/pgadmin/utils/driver/psycopg3/server_manager.py"],"commits":["https://github.com/pgadmin-org/pgadmin4/commit/145e511f05eed69ebcadd3cd61ffea0a5b4c69a4","https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2"],"basis":"shared function","functions":["create_connection_string"]}]},{"from":"CVE-2026-116245","to":"CVE-2026-116249","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["web/pgadmin/browser/server_groups/servers/__init__.py","web/pgadmin/misc/bgprocess/processes.py","web/pgadmin/misc/workspaces/__init__.py","web/pgadmin/utils/__init__.py","web/pgadmin/utils/driver/psycopg3/server_manager.py"],"commits":["https://github.com/pgadmin-org/pgadmin4/commit/a0c8f4857f732c6f5e5bacf4b289b811bb5c6a06","https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2"],"basis":"shared function","functions":["adhoc_connect_server","create","create_connection_string","update"]}]},{"from":"CVE-2026-116247","to":"CVE-2026-116249","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["web/pgadmin/misc/bgprocess/processes.py","web/pgadmin/utils/__init__.py","web/pgadmin/utils/driver/psycopg3/server_manager.py"],"commits":["https://github.com/pgadmin-org/pgadmin4/commit/32db693198f28b78fe2af12a726b80a68eb78cb2","https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2"],"basis":"shared function","functions":["create_connection_string","get_complete_file_path"]}]}]}}