CVE-2025-2945 | pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment

Exp

Remote Code Execution security vulnerability in pgAdmin 4 (Query Tool and Cloud Deployment modules). The vulnerability is associated with the 2 POST endpoints; /sqleditor/query_tool/download, where the query_commited parameter and /cloud/deploy endpoint, where the high_availability parameter is unsafely passed to the Python eval() function, allowing arbitrary code execution. This issue affects pgAdmin 4: before 9.2.

Published: 2025-04-03 Last update: 2025-09-17 Assigner: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 Source: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Conclusion & alert: CVE-2025-2945 is rated High Exploit Risk (93.9/100): CVSS Critical severity, with high exploitation likelihood (EPSS 82.49%, 99th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +4.59% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-2945

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-2945

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-12 77.90% 82.49% +4.59%
2 2026-01-28 63.37% 77.90% +14.53%
3 2025-12-18 63.37%

Full EPSS history (23 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-2945

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.9 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.1 6.0 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 5.9 [email protected]

Weakness enumeration for CVE-2025-2945

GitHub Security Advisory for CVE-2025-2945

GHSA-g73c-fw68-pwx3 · Severity: critical · Ecosystem: pip — pgAdmin 4 Vulnerable to Remote Code Execution

OS Trackers for CVE-2025-2945

vendor priority summary link
suse critical CVE-2025-2945 severity critical: SUSE including 13 source package names (pgadmin4, pgadmin4-9.2-1.1, …), 63 product×package rows across 20 product lines (SLES-LTSS-TERADATA 15 SP2, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, … (20 product lines)): Known Not Affected 57, Fixed 6. https://www.suse.com/security/cve/CVE-2025-2945/

Affected software / configurations for CVE-2025-2945

Vendor Product Version Raw CPE
pgadmin pgadmin_4 < 9.2 cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*

References for CVE-2025-2945

URL Tags
https://github.com/pgadmin-org/pgadmin4/issues/8603 Exploit Issue Tracking
cvelogic Threat Intelligence