Description
pgAdmin 4 runs pg_dump, pg_restore, pg_dumpall and psql from the binary path a user sets in their preferences. In server mode the binary path was refused only when it lay under the per-user storage directory (STORAGE_DIR), not under a SHARED_STORAGE directory, which ordinary users can upload files to. A user could therefore upload an executable to shared storage, point their binary path at it, and have pgAdmin run it as the operating-system account running pgAdmin. On POSIX, files created through pgAdmin are not executable, so this is exploitable where any file with an executable name can run, such as Windows server mode.

The fix checks the binary path against every SHARED_STORAGE directory as well, after expanding $DIR, collapsing ".." and resolving symbolic links, compares directories in a way a different spelling on a case-insensitive filesystem cannot bypass, refuses a path containing a NUL, and enforces the check wherever binary paths are resolved, including for the PSQL tool.

This issue affects pgAdmin 4: before 9.19.
Published: 2026-10-30
Score: 7.7 High
EPSS: n/a
KEV: No
Impact: Remote code execution
Action: Immediate Patch
AI Analysis

Impact

A configuration flaw allows a user to set the path to database utilities such as pg_dump, pg_restore, pg_dumpall, and psql. In server mode, the application accepted a custom binary location that pointed into a shared storage directory that any authenticated user could write to. The flaw also failed to validate the path against shared storage, meaning an uploaded file could be executed by the operating‑system account running pgAdmin. This provides an attacker the ability to run arbitrary code with the privileges of the pgAdmin process, a serious compromise of confidentiality, integrity, and availability. The weakness corresponds to improper validation of executable paths (CWE-426 and CWE-427).

Affected Systems

The issue affects pgAdmin 4 installations older than version 9.19 when deployed in server mode. Attackers must have write access to the shared storage directory used by the pgAdmin instance and the ability to change the binary path in the user preferences.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity vulnerability. The EPSS score is not available, so the current exploitation probability is unknown; however, the flaw is readily demonstrable and suitable for local attackers with access to the shared directory. The vulnerability is not listed in the CISA KEV catalog, but its impact and the ease of exploitation warrant immediate attention. The likely attack vector is that an attacker uploads a malicious executable to the shared storage directory, assigns that file as the utility binary path in pgAdmin preferences, and then triggers any utility that runs that binary. The operating‑system account running pgAdmin will execute the malicious code, potentially achieving full control of the server environment.

Generated by OpenCVE AI on October 30, 2026 at 21:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade from pgAdmin 4 to version 9.19 or newer to receive the shipper‑path validation fix.
  • If an upgrade is not feasible, configure the instance to disallow custom binary paths or remove the shared storage feature so that no user can upload executables to a writable directory that is used as a lookup location.
  • Reconfigure pgAdmin (or the database utilities) to use a fixed, trusted binary path rather than a user‑defined setting, ensuring that only verified system utilities are invoked.

Generated by OpenCVE AI on October 30, 2026 at 21:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Pgadmin
Pgadmin pgadmin 4
Vendors & Products Pgadmin
Pgadmin pgadmin 4

Fri, 30 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
Description pgAdmin 4 runs pg_dump, pg_restore, pg_dumpall and psql from the binary path a user sets in their preferences. In server mode the binary path was refused only when it lay under the per-user storage directory (STORAGE_DIR), not under a SHARED_STORAGE directory, which ordinary users can upload files to. A user could therefore upload an executable to shared storage, point their binary path at it, and have pgAdmin run it as the operating-system account running pgAdmin. On POSIX, files created through pgAdmin are not executable, so this is exploitable where any file with an executable name can run, such as Windows server mode. The fix checks the binary path against every SHARED_STORAGE directory as well, after expanding $DIR, collapsing ".." and resolving symbolic links, compares directories in a way a different spelling on a case-insensitive filesystem cannot bypass, refuses a path containing a NUL, and enforces the check wherever binary paths are resolved, including for the PSQL tool. This issue affects pgAdmin 4: before 9.19.
Title pgAdmin 4: Utility binary path can point at a shared storage directory
Weaknesses CWE-426
CWE-427
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Pgadmin Pgadmin 4
cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-10-30T19:55:14.513Z

Reserved: 2026-10-25T16:26:16.419Z

Link: CVE-2026-116243

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T20:17:04.160

Modified: 2026-10-30T20:17:04.160

Link: CVE-2026-116243

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T22:00:15Z

Weaknesses
  • CWE-426

    Untrusted Search Path

  • CWE-427

    Uncontrolled Search Path Element