---
id: "CVE-2026-116242"
kind: "vulnerability"
aliases: ["CVE-2026-116242"]
title: "pgAdmin 4: SSH tunnels reuse the service account's keys in server mode"
severity: "high"
cvss: 8.2
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["package", "pgadmin", "self-hosted", "ssh"]
not_affected_if: ["desktop-mode", "no-ssh-tunnels", "pgadmin-9.19-or-later"]
published_at: "2026-10-30T20:17:03+00:00"
first_seen_at: "2026-10-30T20:25:37+00:00"
updated_at: "2026-10-30T20:26:27+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116242", "first_seen_at": "2026-10-30T20:25:37+00:00"}]
---

# pgAdmin 4: SSH tunnels reuse the service account's keys in server mode

In server mode, any pgAdmin user could open an SSH tunnel that used the private keys, ssh config and ssh-agent of the operating-system account running pgAdmin. An attacker could reach any host that accepts that account's key without holding credentials of their own.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed pgAdmin 4 version against the fixed release.
- Look for `~/.ssh` and `~/.ssh/config` in the home directory of the account running pgAdmin 4 on a server-mode deployment.

## Fix

- pgAdmin 4: `9.19` or later (the sources say 'before 9.19' is affected).

## Timeline

- 2026-10-30T20:25:37+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116242

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
