CVE Catalog

CVE-2026-116245

HighCVSS 8.2
Published: Translated: NVD NIST

Summary

In pgAdmin 4 server mode, libpq looks up connection services in the service file of the operating-system account, allowing users to use that account's credentials or certificate files. The vulnerability affects versions before 9.19 and can lead to unauthorized access to database servers.

Risk Assessment

A server-mode user could hijack the service account's credentials and gain access to databases and other resources, posing a serious risk to confidentiality and integrity.

Recommendation

Update pgAdmin 4 to version 9.19 or later, which introduces the SERVER_MODE_ALLOWED_SERVICES setting and removes dangerous environment variables.

Other vulnerabilities in pgAdmin 4

See all
Original NVD description (English source)

libpq looks a connection service up in the service file of the operating-system account running pgAdmin 4, and an entry there can hold a password or name a password file or client certificate. In server mode any user could set a server's Service, or a "service" connection parameter, to one of those entries and connect with its credentials. A PGPASSWORD or PGSERVICE variable set for that account was likewise used by libpq for every connection without a value of its own and passed on to the utilities, and pg_dumpall read a maintenance database name such as "service=..." as a connection string. The fix adds the SERVER_MODE_ALLOWED_SERVICES setting, empty by default: in server mode only a listed service can be used, the servicefile parameter is refused, and PGPASSWORD and PGSERVICE are removed from pgAdmin's environment at startup. The allowlist is checked again on the final connection string, and the pg_dumpall database name is wrapped as a connection string. This issue affects pgAdmin 4: before 9.19.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS