pgAdmin 4
CVE-2025-12762
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to pgAdmin server mode
-
ExploitSupply crafted PLAIN-format dump file
-
ExecutionTrigger command injection during restore
-
ImpactExecute arbitrary commands on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires pgAdmin to be deployed in server mode (the multi-user/web deployment, not the default desktop mode) AND a restore operation to be performed against a PLAIN-format (SQL-text) dump file whose contents the attacker controls; the injected commands execute during that restore. Limiting factors: the vulnerable code path is only reached when server mode is configured and a restore of an attacker-influenced PLAIN dump is actually initiated, which in practice presupposes an authenticated pgAdmin user performing the restore - contradicting the input vector's PR:N/UI:N and meaningfully narrowing realistic attackers to those who can get a malicious dump restored. |
| Impact | Raw scoring presents this as critical: the input CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H yields 9.8 with full confidentiality, integrity and availability impact via network access and no stated privileges or user interaction. However, the real-world signals temper this. EPSS is only 0.16% (37th percentile), indicating low modeled probability of near-term exploitation; the CVE is NOT on CISA KEV (no confirmed active exploitation) and no public exploit code is referenced, so exploitation status is 'no public exploit identified at time of analysis.' There is also a notable conflict between the CVSS vector and the description: the vector claims PR:N/UI:N, but the described flaw only triggers 'when running in server mode and performing restores from PLAIN-format dump files,' which realistically requires an authenticated pgAdmin session and a deliberate restore action - verify authentication/interaction requirements with the vendor, as the published PR:N/UI:N appears over-stated. Net assessment: a genuinely serious code-injection RCE worth prompt patching for anyone running pgAdmin in server mode, but the low EPSS, absence of KEV/POC, and the non-default precondition (server mode + attacker-controlled PLAIN dump restore) make it a scheduled-priority fix rather than an emergency, despite the headline 9.8. |
| Exploit ScenarioDerived | An attacker-supplied PLAIN-format (SQL) dump file contains embedded commands; when a pgAdmin user restores that dump in server mode, the malicious content is executed on the server hosting pgAdmin, yielding arbitrary command execution against the database management host. No public proof-of-concept is referenced, and realistic exploitation depends on getting a crafted dump restored by a pgAdmin user. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 18, 2026
Remote code execution in pgAdmin 4 (versions up to and including 9.9) lets an attacker who can get a crafted PLAIN-format dump file restored through pgAdmin execute arbitrary commands on the host running the pgAdmin server. The vulnerable path only exists in server mode (the multi-user web deployment) and only triggers when a restore of attacker-influenced SQL-text content is actually initiated, which in practice requires an authenticated pgAdmin user with restore privileges - the vendor's upstream advisory scores this at 9.8 while our assessment applies PR:L for that reason. No public exploit code has been identified at time of analysis and there is no CISA KEV confirmation; EPSS is 0.16% (37th percentile), so mass exploitation is unlikely, but any multi-tenant pgAdmin server that lets lower-privileged users restore their own dump files should be treated as high risk.
Earlier versions of this analysis (1)
pgAdmin versions up to 9.9 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, low attack complexity. No vendor patch available.
RemediationAI
A vendor patch is available - upgrade pgAdmin 4 past version 9.9 to the fixed release named in the upstream advisory (https://github.com/pgadmin-org/pgadmin4/issues/9320); confirm the exact fixed build against the vendor's release notes before rolling out, since the input data confirms patch availability but not a specific version number. Where an immediate upgrade is not possible, the most effective control is to remove the attack path: restrict the restore feature to a small set of trusted administrative roles and do not grant it to ordinary or shared accounts, accepting that day-to-day users then lose self-service restore. Alternatively, disallow restores from user-supplied PLAIN-format files - require custom/tar archive formats or have DBAs restore from dumps staged on the server by an operator - which blocks the injection vector at the cost of extra manual process. Running pgAdmin so it cannot reach the database host with broad credentials (container isolation, dedicated low-privilege OS account, no host mounts, no docker socket) limits what injected commands can do, and moving single-user work to desktop mode eliminates the multi-user boundary entirely. As detection, review pgAdmin server logs for unexpected restore invocations against unusual PLAIN dump files and monitor for child processes spawned by the pgAdmin process.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pgAdmin is the standard web-based administration and development platform for PostgreSQL, and its restore feature shells out to the PostgreSQL client utilities (psql/pg_restore) to replay a dump into a target database. PLAIN-format dumps are raw SQL text rather than an archive format, so the restore pipeline handles content that is entirely attacker-authored; CWE-94 (Improper Control of Generation of Code / Code Injection) captures the root cause: content from the dump reaches a command execution context without adequate neutralization, allowing injected commands to run with the privileges of the pgAdmin process rather than being confined to SQL statements executed by the database. The affected CPE, cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*, covers pgAdmin 4 releases on the PostgreSQL platform through 9.9. Deployment mode is the decisive precondition: the web/server mode (multi-user, containerized or reverse-proxied deployments) exposes the restore endpoint to other users, while the default desktop mode runs single-user on the administrator's own workstation and offers far less of a privilege boundary to cross.
Know when Pgadmin 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Server-mode pgAdmin requires an authenticated session to perform a restore, so PR:L rather than PR:N; the attacker-controlled dump executes with full host impact (C:H/I:H/A:H).
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
pgAdmin versions up to 9.9 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. This issue allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data.
Executive ViewAI
pgAdmin 4 server-mode deployments running version 9.9 or earlier contain a critical remote code execution vulnerability that a user with restore privileges could exploit by restoring a crafted PLAIN-format dump file, potentially compromising the host that runs the pgAdmin server. This matters to leadership because multi-tenant pgAdmin environments that allow lower-privileged users to restore their own files could face host takeover and lateral movement risk, although no public exploit code has been identified at time of analysis and CISA KEV does not list this issue.
Apply vendor patch.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
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
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
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_
Command injection in pgAdmin 4 before 9.19 lets an authenticated, low-privileged database user execute arbitrary operati
pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. Rated medium severity (CVS
Cross-tenant credential theft in pgAdmin 4 (9.0 through 9.16) lets an authenticated non-owner user hijack another user's
pgAdmin <= 9.1 is affected by a security vulnerability with Cross-Site Scripting(XSS). Rated critical severity (CVSS 9.1
Command injection in pgAdmin 4 versions up to 9.9 on Windows allows an attacker who can supply a crafted file path to th
Same weakness CWE-94 – Code Injection
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
| 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 |
| openSUSE Leap 15.6 | 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 |
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB