---
id: "CVE-2026-116239"
kind: "vulnerability"
aliases: ["CVE-2026-116239"]
title: "pgAdmin 4: LDAP or Kerberos login can open another account's session"
severity: "high"
cvss: 8.9
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["kerberos", "ldap", "package", "pgadmin", "postgresql", "self-hosted"]
not_affected_if: ["desktop-mode", "internal-auth-only"]
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:10+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116239", "first_seen_at": "2026-10-30T20:25:37+00:00"}]
---

# pgAdmin 4: LDAP or Kerberos login can open another account's session

In server mode, a user who authenticates through LDAP or Kerberos can be logged in as a different pgAdmin account with the same username, including the administrator account. That session exposes the other account's role, servers and saved database passwords.

_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 version below.
- Check whether server mode is enabled and whether AUTHENTICATION_SOURCES in the pgAdmin config lists LDAP or Kerberos.
- Check whether any internal account shares a username with an LDAP or Kerberos user.

## Fix

- pgAdmin 4: move to `9.19` or later.

## Timeline

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

## From the sources

In server mode pgAdmin 4 keeps an account per authentication source, so the same username can exist as, for example, an internal account and an LDAP account. After LDAP or Kerberos authenticated a user, pgAdmin chose the account to log in by username alone, or took the account Flask-Security's login form had looked up, without checking that it came from the source that authenticated the user. The session therefore belonged to another account, with its role, its servers and its saved database passwords:

- An LDAP or Kerberos user whose username matched an internal account was logged in as that internal account, including the administrator account created when pgAdmin is first set up.
- With internal authentication listed before LDAP or Kerberos in AUTHENTICATION_SOURCES, the login form's internal validation looks up the account whose email was typed and keeps it even though its password does not match. A Kerberos user could type another Kerberos user's principal and be logged in as that user, and an LDAP user could do the same with an LDAP account whose email is their username.

Exploitation requires valid credentials for an LDAP directory or Kerberos realm that pgAdmin is configured to use.

The fix looks the account up by the authenticated username and the source that authenticated it, and no longer uses the account the login form found for any source but internal authentication. Internal authentication logs in that account only if it is an internal account. Desktop mode is not affected.

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_
