{"id":"CVE-2025-2945","kind":"vulnerability","aliases":["CVE-2025-2945","GHSA-g73c-fw68-pwx3"],"related":[],"title":"pgAdmin 4 Vulnerable to Remote Code Execution","description":"Remote Code Execution security vulnerability in pgAdmin 4  (Query Tool and Cloud Deployment modules).\n\nThe 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.\n\n\nThis issue affects pgAdmin 4: before 9.2.","summary":"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.","severity":"critical","cvss":9.9,"epss":0.563,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Check the installed pgAdmin version with `pip show pgadmin4`; versions below `9.2` are affected.\n- 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.","status":"open","published_at":"2025-04-03T13:15:43+00:00","first_seen_at":"2026-11-16T15:58:21+00:00","triaged_at":"2026-11-16T15:58:28+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T15:58:28Z","model":"claude-haiku-5-5","output":{"fix":"- pgadmin4 (pypi): upgrade to `9.2` or later.","reach":"network","title":"pgAdmin 4: unsafe eval lets a request run code on the server","impact":"high","summary":"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.","audience":"businesses","category":"package","nicknames":[],"who_cares":["pgadmin4","python","postgresql","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"Attacker runs arbitrary code on the pgAdmin server","analyst_note":"","how_to_check":"- Check the installed pgAdmin version with `pip show pgadmin4`; versions below `9.2` are affected.\n- If pgAdmin runs as a web app, confirm whether the `/sqleditor/query_tool/download` and `/cloud/deploy` endpoints are reachable from untrusted networks.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-9.2-or-later","desktop-only-no-network-exposure"],"who_is_affected":"Any deployment of pgAdmin 4 before 9.2 is exposed, most often when pgAdmin is served as a shared web application to users on the network. Desktop-only use on a single machine with no reachable web endpoint is lower risk, but the fix is the same version bump. Deployments on managed hosting that the operator does not run are the vendor's responsibility.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000771,"input_tokens":4664,"output_tokens":609,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2025':9A,17A '-2945':10A,18A '-94':23B '/cloud/deploy':107C '/sqleditor/query_tool/download':100C '2':97C '4':2A,21A,32B,84C,130C '9.2':132C 'affect':128C 'allow':122C 'arbitrari':70B,123C 'associ':94C 'avail':47B,112C 'cloud':51B,88C 'code':6A,71B,78C,124C 'commit':36B,104C 'craft':65B 'cve':8A,16A 'cwe':22B 'deploy':52B,89C 'download':42B 'endpoint':43B,53B,99C,108C 'eval':57B,120C 'execut':7A,79C,125C 'function':121C 'fw68':14A 'g73c':13A 'ghsa':12A 'ghsa-g73c-fw68-pwx3':11A 'high':46B,111C 'host':30B 'issu':127C 'machin':74B 'modul':90C 'packag':24B 'paramet':37B,48B,105C,113C 'pass':33B,116C 'pgadmin':1A,20A,31B,76B,83C,129C 'pgadmin4':19A,25B 'post':66B,98C 'postgresql':26B 'pwx3':15A 'python':27B,55B,119C 'queri':35B,40B,85C,103C 'remot':5A,59B,77C 'request':67B 'run':69B,75B 'secur':80C 'self':29B 'self-host':28B 'send':63B 'tool':41B,86C 'unsaf':115C 'user':60B 'vulner':3A,81C,92C","nicknames":[],"mitigations":[],"who_affected":"Any deployment of pgAdmin 4 before 9.2 is exposed, most often when pgAdmin is served as a shared web application to users on the network. Desktop-only use on a single machine with no reachable web endpoint is lower risk, but the fix is the same version bump. Deployments on managed hosting that the operator does not run are the vendor's responsibility.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["4","pgadmin4"],"ptokens":["pgadmin","pgadmin4"],"labels":["critical","cwe94","package","pgadmin4","postgresql","pypi","python","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2025':9A,17A '-2945':10A,18A '4':2A,21A 'code':6A 'cve':8A,16A 'execut':7A 'fw68':14A 'g73c':13A 'ghsa':12A 'ghsa-g73c-fw68-pwx3':11A 'pgadmin':1A,20A 'pgadmin4':19A 'pwx3':15A 'remot':5A 'vulner':3A","search_b":"'-94':23B '4':32B 'arbitrari':70B 'avail':47B 'cloud':51B 'code':71B 'commit':36B 'craft':65B 'cwe':22B 'deploy':52B 'download':42B 'endpoint':43B,53B 'eval':57B 'high':46B 'host':30B 'machin':74B 'packag':24B 'paramet':37B,48B 'pass':33B 'pgadmin':31B,76B 'pgadmin4':25B 'post':66B 'postgresql':26B 'python':27B,55B 'queri':35B,40B 'remot':59B 'request':67B 'run':69B,75B 'self':29B 'self-host':28B 'send':63B 'tool':41B 'user':60B","search_c":"'/cloud/deploy':107C '/sqleditor/query_tool/download':100C '2':97C '4':84C,130C '9.2':132C 'affect':128C 'allow':122C 'arbitrari':123C 'associ':94C 'avail':112C 'cloud':88C 'code':78C,124C 'commit':104C 'deploy':89C 'endpoint':99C,108C 'eval':120C 'execut':79C,125C 'function':121C 'high':111C 'issu':127C 'modul':90C 'paramet':105C,113C 'pass':116C 'pgadmin':83C,129C 'post':98C 'python':119C 'queri':85C,103C 'remot':77C 'secur':80C 'tool':86C 'unsaf':115C 'vulner':81C,92C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-04-03T13:15:43+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":1,"sources":[{"source":"ghsa","external_id":"GHSA-g73c-fw68-pwx3","url":"https://github.com/advisories/GHSA-g73c-fw68-pwx3","severity":"critical","published_at":"2025-04-03T15:31:13+00:00","modified_at":"2026-11-16T15:55:39+00:00","first_seen_at":"2026-11-16T15:58:21+00:00","fetched_at":"2026-11-16T16:07:02+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-2945","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2945","severity":null,"published_at":"2025-04-03T13:15:43+00:00","modified_at":"2026-06-17T09:07:53+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170851,"url":"https://github.com/pgadmin-org/pgadmin4/commit/75be0bc22d3d8d7620711835db817bd7c021007c","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171070,"url":"https://github.com/pgadmin-org/pgadmin4/issues/8603","title":"Exploit: github.com","kind":"poc","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"poc","confidence":null,"note":"Exploit: github.com"}],"disclosures":[],"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"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}