← Back to search

CVE-2026-116242

8.2 HIGHpublic exploit available

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

AI risk analysis

Summary
pgAdmin 4 in server mode improperly used the service account's SSH credentials and configuration when establishing tunnels, allowing any authenticated user to leverage those credentials to reach arbitrary hosts as the service account, bypassing their own lack of credentials.
Exploitability
Requires authentication as a pgAdmin user with tunnel configuration privileges and knowledge of a target SSH host that accepts the service account's key or identity file; high attack complexity due to reliance on specific SSH configurations.
Blast radius
Any authenticated pgAdmin user in server mode could escalate privileges to the service account and access any resource reachable by that account via SSH, potentially leading to lateral movement or data exfiltration.
Detection
Monitor for SSH connection attempts from the pgAdmin service account to hosts not expected by the service account's usual operations; look for logs showing successful authentication using keys or configs in ~/.ssh despite no such configuration being provided by the user in the tunnel settings.
Prioritized remediation
Upgrade to pgAdmin 4 version 9.19 or later, which restricts tunnel authentication to user-provided credentials and disables use of the service account's ~/.ssh directory in server mode.
ssh-tunnelprivilege-escalationcredential-theftserver-modepgadmin

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

NVD description

pgAdmin 4 opens SSH tunnels with the sshtunnel library but gave it neither host_pkey_directories nor ssh_config_file, so it always loaded the unencrypted private keys in ~/.ssh of the operating-system account running pgAdmin, read that account's ~/.ssh/config (IdentityFile, User, HostName, ProxyCommand) for the tunnel host, and could use its ssh-agent. In server mode any user could therefore configure a tunnel to a host that accepts the service account's key, with no credentials of their own or with an identity file that did not exist in their storage, and reach it as that account. The fix makes tunnels in server mode use only the identity file or password the user configured: the service account's keys, configuration and agent are no longer used, and an identity file that cannot be found in the user's storage is reported instead of falling back to ~/.ssh. Desktop mode is unchanged. 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:N

Weaknesses

CWE-522, CWE-1188

Vendors

pgadmin

Products

pgadmin 4

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.