---
id: "CVE-2025-2945"
page: "https://infrastack.ai/live/CVE-2025-2945"
kind: "vulnerability"
aliases: ["CVE-2025-2945", "GHSA-g73c-fw68-pwx3"]
title: "pgAdmin 4 Vulnerable to Remote Code Execution"
severity: "critical"
cvss: 9.9
epss: 0.563
exploited: false
status: "open"
category: "package"
products: [{"name": "pgadmin4", "fixed": ["9.2"], "affected": "< 9.2", "ecosystem": "pypi"}, {"name": "pgadmin 4", "fixed": ["9.2"], "affected": "< 9.2", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-94", "package", "pgadmin4", "postgresql", "python", "self-hosted"]
not_affected_if: ["desktop-only-no-network-exposure", "version-9.2-or-later"]
published_at: "2025-04-03T13:15:43+00:00"
first_seen_at: "2026-11-16T15:58:21+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-g73c-fw68-pwx3", "first_seen_at": "2026-11-16T15:58:21+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-2945", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "poc", "url": "https://github.com/pgadmin-org/pgadmin4/issues/8603"}, {"type": "epss", "score": 0.563, "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-2945"}]
---

# pgAdmin 4 Vulnerable to Remote Code Execution

Link for people: https://infrastack.ai/live/CVE-2025-2945 (this .md is for agents)

pgAdmin 4 passes the query_commited parameter on its Query Tool download endpoint and the high_availability parameter on its cloud deploy endpoint to Python's eval(). A remote user who can send a crafted POST request can run arbitrary code on the machine running pgAdmin.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pgadmin4 affected < 9.2 fixed 9.2
- vendor:pgadmin 4 affected < 9.2 fixed 9.2

## How to check

- Check the installed pgAdmin version with `pip show pgadmin4`; versions below `9.2` are affected.
- If pgAdmin runs as a web app, confirm whether the `/sqleditor/query_tool/download` and `/cloud/deploy` endpoints are reachable from untrusted networks.

## Fix

- pgadmin4 (pypi): upgrade to `9.2` or later.

## Timeline

- 2026-11-16T15:58:21+00:00 ghsa https://github.com/advisories/GHSA-g73c-fw68-pwx3
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-2945

## Documents

- [fix] Patch: github.com https://github.com/pgadmin-org/pgadmin4/commit/75be0bc22d3d8d7620711835db817bd7c021007c
- [poc] Exploit: github.com https://github.com/pgadmin-org/pgadmin4/issues/8603

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
