{"id":"CVE-2025-13780","aliases":["EUVD-2025-202720","GHSA-fxmw-jcgr-w44v","PYSEC-2026-450","openSUSE-SU-2025:15818-1"],"status":"published","title":"Remote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)","description":"pgAdmin versions up to 9.10 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.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00943,"percentile":0.61328,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-77","CWE-94"],"published":"2025-12-11T18:30:47Z","modified":"2026-11-04T10:30:30Z","exploits":[{"source":"pocgithub","id":"meenakshisl/PoC-CVE-2025-13780","title":"meenakshisl/PoC-CVE-2025-13780","date":"2025-12-12","url":"https://github.com/meenakshisl/PoC-CVE-2025-13780"},{"source":"pocgithub","id":"zeropwn/pgadmin4-9.10-CVE-2025-13780","title":"zeropwn/pgadmin4-9.10-CVE-2025-13780","date":"2025-12-12","url":"https://github.com/zeropwn/pgadmin4-9.10-CVE-2025-13780"},{"source":"pocgithub","id":"ThemeHackers/CVE-2025-13780","title":"ThemeHackers/CVE-2025-13780","date":"2025-12-17","url":"https://github.com/ThemeHackers/CVE-2025-13780"}],"fixes":[{"ecosystem":"PyPI","package":"pgadmin4","fixed_in":["9.11"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.11"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.11"}]}],"versions":["4.20","4.22","4.23","4.24","4.25","4.26","4.27","4.28","4.29","4.30","5.0","5.1","5.2","5.3","5.4","5.5","5.6","5.7","6.10","6.11","6.12","6.13","6.14","6.15","6.16","6.17","6.18","6.19","6.2","6.20","6.21","6.3","6.4","6.5","6.6","6.7","6.8","6.9","7.0","7.1","7.2","7.3","7.4","7.5","7.6","7.7","7.8","8.0","8.1","8.10","8.11","8.12","8.13","8.14","8.2","8.3","8.4","8.5","8.6","8.7","8.8","8.9","9.0","9.1","9.10","9.2","9.3","9.4","9.5","9.6","9.7","9.8","9.9"]},{"source":"osv","ecosystem":"PyPI","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.11"}]}],"versions":["4.20","4.22","4.23","4.24","4.25","4.26","4.27","4.28","4.29","4.30","5.0","5.1","5.2","5.3","5.4","5.5","5.6","5.7","6.10","6.11","6.12","6.13","6.14","6.15","6.16","6.17","6.18","6.19","6.2","6.20","6.21","6.3","6.4","6.5","6.6","6.7","6.8","6.9","7.0","7.1","7.2","7.3","7.4","7.5","7.6","7.7","7.8","8.0","8.1","8.10","8.11","8.12","8.13","8.14","8.2","8.3","8.4","8.5","8.6","8.7","8.8","8.9","9.0","9.1","9.10","9.2","9.3","9.4","9.5","9.6","9.7","9.8","9.9"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.11-1.1"}]}],"bundled":5}],"products":[{"vendor":"pgadmin","product":"pgadmin_4"},{"vendor":"pgadmin.org","product":"pgadmin 4"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/9368","tags":["issue-tracking","Issue Tracking","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13780","tags":["advisory"]},{"url":"https://github.com/pgadmin-org/pgadmin4/pull/9426","tags":["web"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/1d397395f75320ca1d4ed5e9ca721c603415e836","tags":["web"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/d5a909f14cb9713d89b49481ad1929fad89f4576","tags":["web"]},{"url":"https://github.com/advisories/GHSA-fxmw-jcgr-w44v","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13780.json","tags":["advisory"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2025-12762","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-12763","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-12764","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-12765","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-13780","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2025-13780","title":"Remote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)","description":"pgAdmin versions up to 9.10 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.","status":"published","published":"2025-12-11T18:30:47.812Z","modified":"2026-11-03T22:02:51.373Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-03T23:33:08.294318Z"}],"euvd":[{"id":"EUVD-2025-202720","description":"pgAdmin versions up to 9.10 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.","status":"published","published":"2025-12-11T18:30:47Z","modified":"2026-11-03T22:02:51Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical"}],"updated_at":"2026-11-03T23:01:35.361827Z"}],"ghsa":[{"id":"GHSA-fxmw-jcgr-w44v","title":"pgadmin4 has a Meta-Command Filter Command Execution","description":"The 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.","status":"published","published":"2025-12-11T21:31:28Z","modified":"2025-12-12T16:42:56Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical"}],"cwes":["CWE-77","CWE-94"],"updated_at":"2026-11-02T14:39:13.204325Z"}],"nvd":[{"id":"CVE-2025-13780","description":"pgAdmin versions up to 9.10 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.","status":"published","published":"2025-12-11T19:15:52.857Z","modified":"2026-10-07T20:10:01.97Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:11:49.861863Z"}],"osv":[{"id":"CVE-2025-13780","title":"Remote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)","description":"pgAdmin versions up to 9.10 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.","status":"published","published":"2025-12-11T18:30:47.812Z","modified":"2026-11-04T10:30:30.898940382Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical"}],"updated_at":"2026-11-04T11:07:30.139212Z"},{"id":"GHSA-fxmw-jcgr-w44v","title":"pgadmin4 has a Meta-Command Filter Command Execution","description":"The 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.","status":"published","published":"2025-12-11T21:31:28Z","modified":"2026-06-29T12:26:39.050900446Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical"}],"cwes":["CWE-77","CWE-94"],"updated_at":"2026-11-02T15:46:47.119724Z"},{"id":"PYSEC-2026-450","title":"pgadmin4 has a Meta-Command Filter Command Execution","description":"The 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.","status":"published","published":"2026-06-29T11:50:38.596444Z","modified":"2026-07-01T20:22:59.869357Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","level":"critical"}],"updated_at":"2026-11-02T15:52:57.671918Z"},{"id":"openSUSE-SU-2025:15818-1","title":"pgadmin4-9.11-1.1 on GA media","description":"These are all security issues fixed in the pgadmin4-9.11-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-12-12T00:00:00Z","modified":"2026-02-04T03:38:21.227475Z","updated_at":"2026-11-02T16:58:38.101535Z"}]}}
