{"id":"CVE-2025-2945","aliases":["CVE-2025-2945","GHSA-g73c-fw68-pwx3","PYSEC-2026-451"],"related":[],"kind":"vulnerability","state":"published","title":"pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Vulnerabilidad de seguridad de ejecución remota de código en pgAdmin 4 (módulos Herramienta de consulta e Implementación en la nube). La vulnerabilidad está asociada con los dos endpoints POST: /sqleditor/query_tool/download, donde el parámetro query_commited, y /cloud/deploy, donde el parámetro high_availability se pasa de forma insegura a la función eval() de Python, lo que permite la ejecución de código arbitrario. Este problema afecta a pgAdmin 4: versiones anteriores a la versión 9.2.","source":"nvd"}],"published":"2025-04-03T12:23:14.792Z","modified":"2026-11-16T16:00:04.681Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"9.2","status":"affected"}],"vendor":"pgadmin.org","product":"pgAdmin 4","repo":"https://github.com/pgadmin-org/pgadmin4","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.2"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.2"}],"vendor":"pgadmin","product":"pgadmin_4","cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.2"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"pysec"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/8603","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2945","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/75be0bc22d3d8d7620711835db817bd7c021007c","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pgadmin4/PYSEC-2026-451.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-g73c-fw68-pwx3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-04T03:55:26.422Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-2945","url":"https://www.cve.org/CVERecord?id=CVE-2025-2945","licence":"CVE Terms of Use","modified":"2026-02-26T18:28:58.124Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g73c-fw68-pwx3","url":"https://github.com/advisories/GHSA-g73c-fw68-pwx3","licence":"CC-BY-4.0","modified":"2026-11-16T16:00:04.681Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-2945","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2945","licence":"Public domain","modified":"2026-06-17T09:07:53.883Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-451","url":"https://osv.dev/vulnerability/PYSEC-2026-451","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:59.879Z"}],"updatedAt":"2026-11-25T22:58:55.991Z","epss":{"score":0.563,"percentile":0.99069,"date":"2026-12-02T12:00:21.000Z"}}