---
id: CVE-2026-116248
title: 'pgAdmin 4: Non-administrators can share a server with every user'
summary: >-
  In pgAdmin 4 server mode only administrators are meant to share a server with
  all users; the server dialog shows the Shared switch only to them. The create
  and update endpoints of the server API, however, stored the "shared" flag and
  sha…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-862
vendor: pgadmin.org
product: pgAdmin 4
affected:
  - pgadmin_4 < 9.19
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T19:55:17.531Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-116248'
references:
  - url: 'https://github.com/pgadmin-org/pgadmin4/issues/10651'
  - url: >-
      https://github.com/pgadmin-org/pgadmin4/commit/d761942d0bb84d52b18e81307064dd08e26224e3
tags:
  - cve.org
epss: 0.00228
epssPercentile: 0.13678
ingestedAt: '2026-11-05T16:24:31.429Z'
---

## Overview

In pgAdmin 4 server mode only administrators are meant to share a server with all users; the server dialog shows the Shared switch only to them. The create and update endpoints of the server API, however, stored the "shared" flag and shared username they were sent, so any user able to register a server could share one with every other user. The servers.json import had a similar gap: a non-administrator's "Shared" entries were removed only after validation, so a file that also held an invalid entry could create a shared server.

A shared server carries no credentials, so this gives no direct access. It lets a user plant a server, named to look trusted, in every other user's tree and pointing at a host the user controls; anyone who then connects to it presents their own database password to that host.

The fix refuses a non-administrator's request that would share a server with HTTP 403, prunes a non-administrator's shared entries from a servers.json import before validating it, and warns at startup about servers shared earlier by non-administrators.

This issue affects pgAdmin 4: before 9.19.

## Affected

- `pgadmin_4 < 9.19`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
