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:
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.
{
"cna_assigner": "PostgreSQL",
"cwe_ids": [
"CWE-287",
"CWE-639"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116239.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "9.19"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "269e32d5ee01f2eb5de36e464d44487a831f2424"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "7378060e5c8f7c3279b8138d371e13fd8b45a729"
}
],
"source": "REFERENCES_COMMIT"
}
]
}