CVE-2026-116239
8.5 HIGHpublic exploit availablePublished 2026-10-30 · Updated 2026-11-04
AI risk analysis
- Summary
- pgAdmin 4 in server mode incorrectly associates authenticated sessions with user accounts by username alone, ignoring the authentication source (e.g., internal, LDAP, Kerberos), allowing an attacker with valid LDAP/Kerberos credentials to impersonate another user—including administrators—by matching usernames or exploiting login form behavior.
- Exploitability
- Exploitation requires valid credentials for an LDAP directory or Kerberos realm configured by pgAdmin and knowledge of a target username (e.g., admin) that exists in the internal authentication source.
- Blast radius
- Successful exploitation grants full access to the impersonated account’s roles, servers, and saved database passwords, potentially enabling complete system compromise if the administrator account is targeted.
- Detection
- Monitor for login events where a user authenticated via LDAP or Kerberos gains access to resources (e.g., saved credentials, server configurations) associated with an internal account—look for mismatches between the auth_source field in session logs and the account’s source type; no reliable host- or network-based indicator is derivable beyond such log anomalies.
- Prioritized remediation
- Upgrade to pgAdmin 4 version 8.11 or later, where the fix ensures accounts are resolved by both authenticated username and source; until then, disable non-internal authentication sources or enforce unique usernames across all sources.
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 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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-287, CWE-639
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
- HIGHCVE-2025-71432PoC
- CRITICALCVE-2026-82907
- HIGHCVE-2026-89068
- HIGHCVE-2026-102339PoC
- CRITICALCVE-2026-104014
- HIGHCVE-2026-104108PoC
- HIGHCVE-2026-107366
- HIGHCVE-2026-109313PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.