← Back to search

CVE-2026-116249

8.4 HIGHpublic exploit available

Published 2026-10-30 · Updated 2026-11-02

AI risk analysis

Summary
pgAdmin 4 before 9.19 allows authenticated users to access other users' sensitive files (e.g., passwords, SSL keys) and inject arbitrary libpq connection parameters due to insufficient path validation and unquoted parameter names in server configuration handling.
Exploitability
Exploitation requires low-privilege user access and knowledge of another user's storage directory structure; the attack is mitigated by high authentication requirements and limited to users with server management permissions.
Blast radius
Successful exploitation enables credential theft, impersonation via stolen client certificates or SSH keys, and potential file creation/appending on the host via libpq's sslkeylogfile parameter, compromising confidentiality and integrity across multiple users.
Detection
Defenders should monitor server configuration change logs (e.g., REST API calls, UI edits, servers.json imports) for paths containing '..' or absolute paths outside the user's storage directory; also watch for unexpected file creation or writes to non-standard locations by the pgAdmin process.
Prioritized remediation
Upgrade to pgAdmin 4 version 9.19 or later, which enforces strict path containment checks for resolved files and validates connection parameter names against a whitelist of known libpq keywords.
path-traversalcredential-theftauth-bypasswebpostgres

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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. make_conninfo() also quoted connection parameter values but not their names, so a crafted parameter name could smuggle additional keyword=value pairs past these checks. The 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. This issue affects pgAdmin 4: before 9.19.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L

Weaknesses

CWE-22, CWE-73

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.