{"vuln_id":"CVE-2025-12762","aliases":["GHSA-w2p4-p4rh-qcm3"],"description":"pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode","published_at":"2025-11-13T15:30:30Z","modified_at":"2026-11-16T15:48:55Z","first_seen_at":"2026-11-21T19:15:20.290245Z","severity":"critical","severity_source":"ghsa","cvss_score":9.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","cwe":["CWE-94"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.12705,"epss_percentile":0.96363,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-12762"},"matched_alias":null,"items":[{"id":2552,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-fxmw-jcgr-w44v / CVE-2025-13780: pgadmin4 has a Meta-Command Filter Command Execution","summary":"pgadmin4 has a Meta-Command Filter Command Execution\n\nThe PLAIN restore meta-command filter introduced in pgAdmin as part of the fix for CVE-2025-12762 does not detect meta-commands when a SQL file begins with a UTF-8 Byte Order Mark (EF BB BF) or other special byte sequences. The implemented filter uses the function `has_meta_commands()`, which scans raw bytes using a regular expression. The regex does not treat the bytes as ignorable, so meta-commands such as `\\\\!` remain undetected. When pgAdmin invokes psql with --file, psql strips the bytes and executes the command. This can result in remote command execution during a restore operation.\n\nAffected packages: pip:pgadmin4\nPatched: pgadmin4 9.11","url":"https://github.com/advisories/GHSA-fxmw-jcgr-w44v","published_at":"2025-12-11T21:31:28Z","updated_at":"2026-11-16T15:41:59Z","fetched_at":"2026-11-21T19:15:18.416927Z","severity":"critical","cvss_score":9.1,"epss":0.12705,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"pgadmin4","vuln_id":"CVE-2025-13780","vuln_ids":["CVE-2025-12762","CVE-2025-13780","GHSA-FXMW-JCGR-W44V","GHSA-W2P4-P4RH-QCM3"],"tags":["ghsa","pip","CWE-77","CWE-94"],"cluster_id":2550,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2552","html":"https://vulnwatch.ve1ve2.com/item/2552"}},{"id":2539,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-w2p4-p4rh-qcm3 / CVE-2025-12762: pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode","summary":"pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode\n\npgAdmin 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.\n\nAffected packages: pip:pgadmin4\nPatched: pgadmin4 9.10","url":"https://github.com/advisories/GHSA-w2p4-p4rh-qcm3","published_at":"2025-11-13T15:30:30Z","updated_at":"2026-11-16T15:48:55Z","fetched_at":"2026-11-21T19:15:18.416917Z","severity":"critical","cvss_score":9.1,"epss":0.12705,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"pgadmin4","vuln_id":"CVE-2025-12762","vuln_ids":["CVE-2025-12762","GHSA-W2P4-P4RH-QCM3"],"tags":["ghsa","pip","CWE-94"],"cluster_id":2523,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2539","html":"https://vulnwatch.ve1ve2.com/item/2539"}}]}