{"id":"CVE-2025-2945","state":"PUBLISHED","title":"pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment","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.","publishedAt":"2025-04-03T12:23:14.792Z","updatedAt":"2026-02-26T18:28:58.124Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"PostgreSQL"},"assigner":"PostgreSQL","products":["pgadmin.org pgAdmin 4"],"affected":[{"vendor":"pgadmin.org","product":"pgAdmin 4","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThan":"9.2","versionType":"custom"}],"modules":["Query Tool","Cloud Deployment"],"programFiles":["https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/tools/sqleditor/__init__.py","https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgacloud/providers/google.py"],"repo":"https://github.com/pgadmin-org/pgadmin4"}],"references":["https://github.com/pgadmin-org/pgadmin4/issues/8603"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/2xxx/CVE-2025-2945.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-2945","state":"PUBLISHED","datePublished":"2025-04-03T12:23:14.792Z","dateUpdated":"2026-02-26T18:28:58.124Z","assignerShortName":"PostgreSQL","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateReserved":"2025-03-29T01:38:35.441Z"},"containers":{"cna":{"title":"pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"pgadmin.org","product":"pgAdmin 4","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThan":"9.2","versionType":"custom"}],"modules":["Query Tool","Cloud Deployment"],"programFiles":["https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/tools/sqleditor/__init__.py","https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgacloud/providers/google.py"],"repo":"https://github.com/pgadmin-org/pgadmin4"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/8603","tags":["issue-tracking"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"providerMetadata":{"shortName":"PostgreSQL","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateUpdated":"2025-04-03T12:23:14.792Z"},"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-2945","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-04-04T03:55:26.422590Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","type":"CWE","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-26T18:28:58.124Z"}}]}}}