CVE-2026-116244: pgAdmin 4: libpq uses the pgAdmin service account's Kerberos credentials
When a pgAdmin 4 connection was not meant to use a Kerberos user's delegated credentials, pgAdmin removed KRB5CCNAME from its environment, so the Kerberos library fell back to the default credential cache, or a client keytab, of the operating-system account running pgAdmin. libpq then answered any server that asked for GSSAPI authentication with that account's ticket, whatever user name the pgAdmin user gave, so in server mode any user could connect as the service account's Kerberos principal; gssencmode=disable did not prevent it. On Windows, SSPI used the service account's logon in the same way. psql was also started with pgAdmin's environment, which could hold another user's credential cache while that user was connecting.
The fix points KRB5CCNAME and KRB5CLIENTKTNAME at a file that cannot exist except while a Kerberos-authenticated user connects with Kerberos, and gives every other connection, psql and the utilities requireauth=!gss,!sspi and gssencmode=disable, checked on the final connection string. requireauth needs libpq 16 or later.
This issue affects pgAdmin 4: before 9.19.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pgAdmin 4to a version that resolves this vulnerability.Fixed in 9.19 - Upgrade
Upgrade
libpqto a version that resolves this vulnerability.Fixed in 16 - Configuration
Set KRB5CCNAME and KRB5_CLIENT_KTNAME to a file that cannot exist except during a Kerberos-authenticated connection.
Kerberos environment KRB5CCNAME and KRB5_CLIENT_KTNAME = Point both variables at a file that cannot exist except while a Kerberos-authenticated user connects with Kerberos - Configuration
Set require_auth=!gss,!sspi and gssencmode=disable on the final connection string for every other connection.
psql and utilities require_auth and gssencmode = require_auth=!gss,!sspi; gssencmode=disable
Event History
Frequently Asked Questions
Which deployments are exposed to service-account impersonation?
Server-mode pgAdmin deployments are exposed when the operating-system account running pgAdmin has usable Kerberos credentials in its default credential cache or a client keytab, or on Windows through that account's SSPI logon. In that situation, any pgAdmin user could connect as the service account's Kerberos principal if the server requests GSSAPI authentication.
Does disabling GSS encryption prevent exploitation?
No. Setting gssencmode=disable did not prevent libpq from supplying the service account's ticket when a server requested GSSAPI authentication.
Are pgAdmin command-line connections also affected?
Yes. psql launched by pgAdmin inherited pgAdmin's environment, which could contain another user's credential cache while that user was connecting. The issue also applies to utilities covered by the fix.
What change addresses the issue?
Upgrade to pgAdmin 4 version 9.19 or later. The fix prevents ordinary connections from using Kerberos credential-cache or keytab paths and applies require_auth=!gss,!sspi plus gssencmode=disable to non-Kerberos connections; require_auth requires libpq 16 or later.