# CVE-2026-17349: pgAdmin 4: Adhoc server clone leaks another user's stored database credentials and ownership to a non-owner

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.3
- **CVSS:** 9.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.40% (percentile 25, 2026-11-26)
- **CWE:** CWE-639, CWE-522
- **Published:** 2026-07-31T15:59:47.841Z
- **Modified:** 2026-10-23T23:10:00.157Z

## Who should check

- Anyone running pgadmin.org pgAdmin 4 \>= 9.0, \< 9.17

## Description

/misc/workspace/adhoc\_connect\_server, part of the Workspaces feature introduced in pgAdmin 4 9.0, when passed the id of an existing server, clones that server via Server.clone(), which copies every column from the source row, including user\_id, shared, shared\_username, and the stored credential fields password, save\_password, and tunnel\_password. When a non-owner triggered an adhoc connect against another user's (in practice, typically an administrator's) shared server, the clone inherited that user's ownership, shared flag, and stored database credentials verbatim. pgAdmin persisted this cross-tenant, credential-bearing server row before the connection was even attempted, so it survived even when the connection subsequently failed. The non-owner could then open the newly-owned clone and pgAdmin would connect using the source user's stored database password on the non-owner's behalf, granting the non-owner use of database credentials -- and whatever database privileges they confer -- that were never their own.

Fix forces the cloned adhoc record's ownership fields (user\_id, shared, shared\_username) and stored credential fields (password, save\_password, tunnel\_password) to belong to the calling user and be cleared/private before committing, regardless of the source server's ownership, sharing state, or stored credentials. A regression test asserts that an adhoc connect triggered by a non-owner against another user's shared server persists a row owned by the caller, not shared, and without the source's stored credentials.

This issue affects pgAdmin 4: from 9.0 before 9.17.

## Affected and fixed versions

- pgadmin.org pgAdmin 4: \>= 9.0, \< 9.17 (cvelist)

## Mitigation

- Upgrade pgAdmin 4 to 9.17 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-17349. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-17349.md
Affected: pgadmin.org pgAdmin 4 >= 9.0, < 9.17
Fixed in: pgadmin.org pgAdmin 4 9.17

Steps:
1. Search this machine and project for pgadmin.org pgAdmin 4: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-17349 being exploited?

There is no confirmed exploitation: CVE-2026-17349 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-17349?

Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-17349?

pgadmin.org pgAdmin 4 \>= 9.0, \< 9.17.

### Is there a fix for CVE-2026-17349?

Yes. Fixed in pgadmin.org pgAdmin 4 9.17. Upgrade pgAdmin 4 to 9.17 or later.

### How do I check if I'm affected by CVE-2026-17349?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/pgadmin-org/pgadmin4/issues/10200>
- patch: <https://github.com/pgadmin-org/pgadmin4/commit/a7e74a6ed685bc34e1f77a8b6a94d00fa3dff815>
- patch: <https://github.com/pgadmin-org/pgadmin4/commit/64a9cdbd6a240a962144f84418beaf9e66419779>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-17349>

HTML: <https://flawdb.com/CVE-2026-17349> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-17349>
