← Back to search

CVE-2026-116245

8.2 HIGHpublic exploit available

Published 2026-10-30 · Updated 2026-11-04

AI risk analysis

Summary
In pgAdmin 4 server mode, untrusted users could exploit libpq's service-file lookup to inject credentials (passwords, certificates) by specifying a malicious 'service' parameter or environment variables like PGPASSWORD, allowing unauthorized access to PostgreSQL databases using those credentials.
Exploitability
High attack complexity (AC:H) and low privilege requirement (PR:L) mean an authenticated attacker with minimal access can exploit it, but requires knowledge of service-file entries or environment variables set for the pgAdmin process.
Blast radius
Successful exploitation grants full access to any database the compromised credentials can reach, potentially enabling data exfiltration or unauthorized administrative actions across all databases accessible via those credentials.
Detection
Log entries showing connection attempts with non-default 'service' parameters or unexpected PGPASSWORD/PGSERVICE usage in pgAdmin logs may indicate exploitation attempts; monitor for connections using service names not in SERVER_MODE_ALLOWED_SERVICES.
Prioritized remediation
Upgrade to pgAdmin 4 version 9.19 or later and set SERVER_MODE_ALLOWED_SERVICES to an empty list by default to block service-file injection; additionally remove PGPASSWORD and PGSERVICE from the environment at startup.
credential-theftauth-bypasspostgresserver-modeinjection

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

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.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

Weaknesses

CWE-522, CWE-862

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

Related by shared AI tags and CWE weakness class. Browse the full archive.