Bug 2568358 (CVE-2026-116243) - CVE-2026-116243 pgadmin4: pgadmin4: Arbitrary code execution via binary path in shared storage
Summary: CVE-2026-116243 pgadmin4: pgadmin4: Arbitrary code execution via binary path ...
Keywords:
Status: NEW
Alias: CVE-2026-116243
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2568976
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-06 16:22 UTC by OSIDB Bzimport
Modified: 2026-11-09 08:09 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-06 16:22:41 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.