CVE-2025-2945
pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment
- Published
- Apr 3, 2025
- Updated
- Feb 26, 2026
- Assigning CNA
- PostgreSQL
- Evidence observed
- Aug 8, 2026
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.0%
- Model date
- Oct 15, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
Summary
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.
Sources
pgadmin/CVE-2025-2945
pgAdmin4 <= 9.1 Authenticated Remote Code Execution (CVE-2025-2945)
Vulhub vulnerability labsDeclared conditions
- lab image version: postgres:17-alpine(pgadmin/CVE-2025-2945/docker-compose.yml:services.pgsql.image)
- lab image version: vulhub/pgadmin:9.1(pgadmin/CVE-2025-2945/docker-compose.yml:services.web.image)
modules/exploits/multi/http/pgadmin_query_tool_authenticated.rb
Metasploit Framework modulesDeclared conditions
- platform: Python($.exploit_multi/http/pgadmin_query_tool_authenticated.platform)
- verification: check_declared($.exploit_multi/http/pgadmin_query_tool_authenticated.check)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.