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.
Published: 2026-10-30
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: Privilege escalation via SSH tunnels in server mode
Action: Apply Patch
AI Analysis

Impact

pgAdmin 4 opens SSH tunnels in server mode without specifying the SSH identity to use. Because the sshtunnel library was given no host_pkey_directories or ssh_config_file, it defaulted to loading the unencrypted private key files from the operating‑system account that runs the pgAdmin service. This allows any authenticated user on the server to configure a tunnel that targets a host accepting the service account’s key, effectively letting the user reach that host as the service account. The vulnerability exposes privileged SSH credentials to unprivileged users and leads to unauthorized remote access or privilege escalation. The weakness is improper separation of user context from service account credentials, corresponding to CWE‑1188 and CWE‑522.

Affected Systems

The affected product is pgAdmin 4, any version before 9.19. The issue exists in server mode and does not affect desktop mode. The product is published by pgadmin.org. In all versions that expose the server mode functionality, any operating‑system account that runs pgAdmin uses its SSH keys for tunnels, leaking those keys to database users who create tunnels.

Risk and Exploitability

The CVSS score of 7.1 signifies a high risk moderate severity, with exploitation not requiring network‑level access beyond the pgAdmin server. EPSS is not available, but because every user of the server can trigger the behavior, the probability of exploitation is high if no patch is applied. The vulnerability is not listed in the CISA KEV catalog, meaning there are no known widespread exploitation cases reported yet. Attackers can simply configure a tunnel in the web interface, using any target host, and the ssh‑agent and key material of the service account will be used, allowing remote access to that host without the attacker having any credentials.

Generated by OpenCVE AI on October 30, 2026 at 21:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pgAdmin 4 to version 9.19 or later, where server‑mode tunnels use only user‑specified credentials.
  • Reconfigure all existing SSH tunnels to use a valid identity file or password for the user, removing any reliance on the service account’s keys.
  • Review pgAdmin configuration files and logs for any use of the service account’s SSH keys in tunnel settings, and audit access to tunnel definitions to ensure only authorized users can create tunnels.

Generated by OpenCVE AI on October 30, 2026 at 21:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Pgadmin
Pgadmin pgadmin 4
Vendors & Products Pgadmin
Pgadmin pgadmin 4

Fri, 30 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
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.
Title pgAdmin 4: SSH tunnels use the pgAdmin service account's own SSH identity
Weaknesses CWE-1188
CWE-522
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N'}


Subscriptions

Pgadmin Pgadmin 4
cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-10-30T19:55:13.843Z

Reserved: 2026-10-25T16:26:16.419Z

Link: CVE-2026-116242

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T20:17:03.983

Modified: 2026-10-30T20:17:03.983

Link: CVE-2026-116242

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T22:00:15Z

Weaknesses
  • CWE-1188

    Initialization of a Resource with an Insecure Default

  • CWE-522

    Insufficiently Protected Credentials