← Vulnerability feed

Vulnerability record · CVE-2025-2945 · published 3 April 2025

CVE-2025-2945: pgAdmin 4 eval() code injection in Query Tool and Cloud Deployment

Pgadmin · Pgadmin 4

pgAdmin 4 before 9.2 passes the query_commited parameter of POST /sqleditor/query_tool/download and the high_availability parameter of POST /cloud/deploy unsafely into Python's eval(), allowing arbitrary code execution. Because pgAdmin is a widely deployed database administration tool, a successful attack can compromise the host running pgAdmin and any database credentials it holds.

8.8 CVSS 3.1 High EPSS 56% · top 1.0% CWE-94 · Code injection
8.8CVSS 3.1 base score
56%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
1References, 1 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityCVSS 8.8 with network reachability, low privileges required and full impact, plus a very high EPSS score and an exploit-tagged reference, make this a high-priority patch despite no KEV listing.

What it is

pgAdmin 4 before 9.2 passes the query_commited parameter of POST /sqleditor/query_tool/download and the high_availability parameter of POST /cloud/deploy unsafely into Python's eval(), allowing arbitrary code execution. Because pgAdmin is a widely deployed database administration tool, a successful attack can compromise the host running pgAdmin and any database credentials it holds.

Impact

An authenticated attacker gains arbitrary code execution on the pgAdmin server, leading to full compromise of confidentiality, integrity and availability of that host and the database connections it manages.

Attack surface

Reached over the network through two authenticated POST endpoints, /sqleditor/query_tool/download and /cloud/deploy; the CVSS vector shows PR:L and UI:N, so a low-privileged account is required and no user interaction is needed.

Exploitation

No CISA KEV listing and no ransomware association are recorded, but EPSS is 0.563 (99th percentile) and the single reference is tagged Exploit, indicating public exploit interest and a high likelihood of attempted exploitation.

What to do

  • Upgrade pgAdmin 4 to version 9.2 or later, which is the fixed release per the advisory.
  • If immediate upgrade is not possible, restrict network access to pgAdmin to trusted management networks and disable or block the /cloud/deploy and /sqleditor/query_tool/download endpoints where feasible.
  • Audit and reduce pgAdmin accounts to the minimum needed, since exploitation requires an authenticated low-privileged session.
  • Run pgAdmin with least privilege and avoid storing high-value database credentials in instances exposed to untrusted users.
  • Monitor pgAdmin logs for anomalous POST requests to the two affected endpoints.

Detection

  • Search pgAdmin HTTP logs for POST requests to /sqleditor/query_tool/download with a query_commited parameter and to /cloud/deploy with a high_availability parameter.
  • Inspect those parameter values for Python code patterns such as __import__, os.system, subprocess, eval or base64-encoded payloads.
  • Alert on unexpected child processes spawned by the pgAdmin Python process (for example shells, curl or wget).
  • Correlate pgAdmin authentication events with subsequent requests to the two endpoints from the same account or source IP.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-2945 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2024-2044pgAdmin path traversal in session handling enables unsafe deserialization RCEpgAdmin 8.3 and earlier is affected by a path-traversal flaw in the session handling code that deserializes user sessions. On Windows, an unauthentic…EPSS 79%analysed9.8CVE-2025-12762Pgadmin 4 code injection vulnerabilitypgAdmin versions up to 9.9 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restore…EPSS 13%9.8CVE-2024-3116pgAdmin validate binary path API command injection RCEpgAdmin 8.4 and earlier expose a remote code execution flaw through the validate binary path API, which fails to safely handle input and allows comma…EPSS 66%analysed9.5CVE-2026-12046Pgadmin 4 missing authentication for critical function vulnerabilityTwo state-mutating endpoints in pgAdmin 4's SQL Editor blueprint -- DELETE /sqleditor/close/<trans_id> and POST /sqleditor/initialize/sqleditor/updat…EPSS 1.0%9.4CVE-2026-17566Pgadmin 4 os command injection vulnerabilitypgAdmin 4's Import/Export Data tool builds a psql \copy (...) command line by interpolating a user-supplied SQL query into a Jinja template and passi…EPSS 0.67%9.4CVE-2026-17351Pgadmin 4 sql injection vulnerabilityThe fix for CVE-2026-12045 in pgAdmin 4 9.16 required the LLM-supplied query passed to the AI Assistant's execute_sql_query tool to parse, via sqlpar…EPSS 0.48%9.4CVE-2026-12045Pgadmin 4 command injection vulnerabilityRead-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence database content that the assistant reads to execute …EPSS 0.66%9.4CVE-2026-7813Pgadmin 4 improper access control vulnerabilityAuthorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules. Mu…EPSS 0.65%

Source: NIST National Vulnerability Database (record CVE-2025-2945), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.