{"id":"CVE-2025-12762","kind":"vulnerability","aliases":["CVE-2025-12762","GHSA-w2p4-p4rh-qcm3"],"related":[],"title":"pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode","description":"pgAdmin versions up to 9.9 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. This issue allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data.","summary":"pgAdmin 4 versions before 9.10 let a user who restores a PLAIN-format dump file inject commands that run on the server hosting pgAdmin. An attacker who can supply or influence such a dump can execute arbitrary commands on that server.","severity":"critical","cvss":9.8,"epss":0.12705,"exploited":false,"exploited_at":null,"products":[{"name":"pgadmin4","fixed":["9.10"],"affected":"< 9.10","ecosystem":"pypi"},{"name":"pgadmin 4","fixed":["9.10"],"affected":"< 9.10","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["cwe-94","package","pgadmin4","postgresql","python","self-hosted"],"not_affected_if":["desktop-mode","no-restore-use"],"how_to_check":"- Check the installed version with `pip show pgadmin4` and confirm whether it is below `9.10`.\n- Confirm whether pgAdmin runs in server mode (`SERVER_MODE = True` in the config) and whether users can restore dump files.","fix":"- pgadmin4 (PyPI): upgrade to `9.10`.","status":"open","published_at":"2025-11-13T13:15:44+00:00","first_seen_at":"2026-11-16T15:53:11+00:00","triaged_at":"2026-11-16T15:54:26+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T15:54:26Z","model":"claude-haiku-5-5","output":{"fix":"- pgadmin4 (PyPI): upgrade to `9.10`.","reach":"network","title":"pgAdmin4: restoring a plain-format dump in server mode runs commands","impact":"high","summary":"pgAdmin 4 versions before 9.10 let a user who restores a PLAIN-format dump file inject commands that run on the server hosting pgAdmin. An attacker who can supply or influence such a dump can execute arbitrary commands on that server.","audience":"businesses","category":"package","nicknames":[],"who_cares":["pgadmin4","self-hosted","python","postgresql"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"Attacker runs arbitrary commands on the pgAdmin server.","analyst_note":"","how_to_check":"- Check the installed version with `pip show pgadmin4` and confirm whether it is below `9.10`.\n- Confirm whether pgAdmin runs in server mode (`SERVER_MODE = True` in the config) and whether users can restore dump files.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["desktop-mode","no-restore-use"],"who_is_affected":"Teams that run pgAdmin 4 in server mode, a shared web deployment where users log in, and allow restores from PLAIN-format dump files. Desktop-only installs in desktop mode are not described as affected by the sources. The sources do not describe whether restore access is limited to trusted users.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000745,"input_tokens":4642,"output_tokens":562,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-12762':15A,23A '-2025':14A,22A '-94':28B '4':26A,37B '9.10':40B '9.9':82C 'affect':84C 'allow':110C 'arbitrari':73B,116C 'attack':62B,111C 'code':5A,88C 'command':53B,74B,117C 'critic':125C 'cve':13A,21A 'cwe':27B 'data':139C 'databas':134C 'dump':50B,70B,106C 'execut':6A,72B,89C,115C 'file':51B,107C 'format':49B,105C 'ghsa':17A 'ghsa-w2p4-p4rh-qcm3':16A 'host':35B,59B,121C 'influenc':67B 'inject':52B,113C 'integr':129C 'issu':109C 'let':41B 'manag':135C 'mode':12A,98C 'occur':93C 'p4rh':19A 'packag':29B 'perform':100C 'pgadmin':25A,36B,60B,78C,122C 'pgadmin4':1A,24A,30B 'plain':48B,104C 'plain-format':47B,103C 'pose':123C 'postgresql':31B 'python':32B 'qcm3':20A 'rce':7A,90C 'remot':4A,87C 'restor':45B,101C 'risk':126C 'run':9A,55B,95C 'secur':131C 'self':34B 'self-host':33B 'server':11A,58B,77B,97C,120C 'suppli':65B 'system':136C 'under':138C 'user':43B 'version':38B,79C 'vulner':2A,91C 'w2p4':18A","nicknames":[],"mitigations":[],"who_affected":"Teams that run pgAdmin 4 in server mode, a shared web deployment where users log in, and allow restores from PLAIN-format dump files. Desktop-only installs in desktop mode are not described as affected by the sources. The sources do not describe whether restore access is limited to trusted users.","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":"'-12762':15A,23A '-2025':14A,22A '4':26A 'code':5A 'cve':13A,21A 'execut':6A 'ghsa':17A 'ghsa-w2p4-p4rh-qcm3':16A 'mode':12A 'p4rh':19A 'pgadmin':25A 'pgadmin4':1A,24A 'qcm3':20A 'rce':7A 'remot':4A 'run':9A 'server':11A 'vulner':2A 'w2p4':18A","search_b":"'-94':28B '4':37B '9.10':40B 'arbitrari':73B 'attack':62B 'command':53B,74B 'cwe':27B 'dump':50B,70B 'execut':72B 'file':51B 'format':49B 'host':35B,59B 'influenc':67B 'inject':52B 'let':41B 'packag':29B 'pgadmin':36B,60B 'pgadmin4':30B 'plain':48B 'plain-format':47B 'postgresql':31B 'python':32B 'restor':45B 'run':55B 'self':34B 'self-host':33B 'server':58B,77B 'suppli':65B 'user':43B 'version':38B","search_c":"'9.9':82C 'affect':84C 'allow':110C 'arbitrari':116C 'attack':111C 'code':88C 'command':117C 'critic':125C 'data':139C 'databas':134C 'dump':106C 'execut':89C,115C 'file':107C 'format':105C 'host':121C 'inject':113C 'integr':129C 'issu':109C 'manag':135C 'mode':98C 'occur':93C 'perform':100C 'pgadmin':78C,122C 'plain':104C 'plain-format':103C 'pose':123C 'rce':90C 'remot':87C 'restor':101C 'risk':126C 'run':95C 'secur':131C 'server':97C,120C 'system':136C 'under':138C 'version':79C 'vulner':91C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-11-13T13:15:44+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-w2p4-p4rh-qcm3","url":"https://github.com/advisories/GHSA-w2p4-p4rh-qcm3","severity":"critical","published_at":"2025-11-13T15:30:30+00:00","modified_at":"2026-11-16T15:48:55+00:00","first_seen_at":"2026-11-16T15:53:11+00:00","fetched_at":"2026-11-16T15:56:53+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-12762","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12762","severity":null,"published_at":"2025-11-13T13:15:44+00:00","modified_at":"2026-10-18T20:10:00+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":170708,"url":"https://github.com/pgadmin-org/pgadmin4/commit/1d397395f75320ca1d4ed5e9ca721c603415e836","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171084,"url":"https://github.com/pgadmin-org/pgadmin4/issues/9320","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.12705,"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-12762"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}