# CVE-2026-7813: pgAdmin 4: Cross-user data access and shared-server privilege escalation in server mode

- Severity: Critical 9.4 (CVSS:4.0, scored by PostgreSQL) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 46% of CVEs (2026-11-30)
- Published: 2026-05-11T14:35:48.717Z
- Modified: 2026-11-16T16:00:03.911Z
- Also known as: GHSA-h2x2-q2mc-24gw, PYSEC-2026-452
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: PostgreSQL

## Description

Authorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules.

Multiple endpoints fetched user-owned objects without filtering by the requesting user's identity. An authenticated user could access another user's private servers, server groups, background processes, and debugger function arguments by guessing object IDs.

Additionally, the Shared Servers feature contained multiple issues including credential leakage (passexec_cmd, passfile, SSL keys), privilege escalation via writable passexec_cmd (a shell command executed when establishing the connection) allowing arbitrary command execution in the owner's process context, and owner-data corruption via SQLAlchemy session mutations. Several owner-only fields (passexec_cmd, passexec_expiration, db_res, db_res_type) were writable by non-owners through the API, and additional fields (kerberos_conn, tags, post_connection_sql) lacked per-user persistence so non-owner edits mutated the owner's record.

Fix centralises access control via a new server_access module, scopes all user-owned models with a UserScopedMixin, returns HTTP 410 from connection_manager when access is denied in server mode, suppresses owner-only fields for non-owners across the merge / API response / ServerManager paths, and adds an explicit owner-only write guard. The remediation landed in two pull requests; both are referenced.

This issue affects pgAdmin 4: before 9.15.

(As written by CVE List.)

## Affected

- pgadmin.org pgAdmin 4: before 9.15
- pgadmin4 (PyPI): before 9.15
- pgadmin pgadmin_4: before 9.15

## Every score

- PostgreSQL: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- PostgreSQL: CVSS:4.0 9.4 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- PyPA Advisory Database: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`

## References

- <https://github.com/pgadmin-org/pgadmin4/pull/9830> (issue-tracking, patch, web)
- <https://github.com/pgadmin-org/pgadmin4/pull/9835> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7813> (advisory)
- <https://github.com/pgadmin-org/pgadmin4> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pgadmin4/PYSEC-2026-452.yaml> (web)
- <https://pypi.org/project/pgadmin4> (package, web)
- <https://github.com/advisories/GHSA-h2x2-q2mc-24gw> (advisory)

## Sources

- CVE List: [CVE-2026-7813](https://www.cve.org/CVERecord?id=CVE-2026-7813), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-h2x2-q2mc-24gw](https://github.com/advisories/GHSA-h2x2-q2mc-24gw), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-7813](https://nvd.nist.gov/vuln/detail/CVE-2026-7813), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-452](https://osv.dev/vulnerability/PYSEC-2026-452), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-7813 · Whole record: https://cve.day/CVE-2026-7813.json · Rebuilt by cve.day 2026-11-25T22:59:21.204Z
