Junglewise Threat Intelligence

CVE-2026-17349: PostgreSQL pgAdmin 4 credential leak in Workspaces adhoc connection

CVE-2026-17349 · Severity: critical · CVSS 9.6 · Published 2026-07-31

Executive brief

pgAdmin 4 is a popular management tool for PostgreSQL databases. A security flaw in its 'Workspaces' feature allows a regular user to gain unauthorized access to database credentials stored by other users, including administrators. By triggering a specific connection process, an attacker can clone a shared server entry and inherit the original owner's saved passwords, potentially leading to full control over the underlying databases.

Technical details

An authorization bypass exists in the /misc/workspace/adhoc_connect_server endpoint of pgAdmin 4. When an ad-hoc connection is requested for an existing server ID, the application uses Server.clone(), which performs a shallow copy of all database columns including user_id, shared status, and sensitive credential fields (password, save_password, and tunnel_password). Because pgAdmin persists this cloned row before verifying the connection, a low-privileged user can trigger a clone of an administrator's shared server, effectively 're-homing' the administrator's stored credentials to their own account. An attacker can then use the newly owned clone to connect to the database using the victim's saved credentials. The issue is fixed in version 9.17 by ensuring ownership and credential fields are cleared or reset to the calling user during the cloning process.

Affected products

  • PostgreSQL pgAdmin 4 9.0 to 9.16

Timeline

  • 2026-07-24: other: Issue reported internally
  • 2026-07-31: disclosed: CVE published
  • 2026-07-31: patched: Fixed in version 9.17

References

Related threats