CVE-2025-13780: pgAdmin 4 PLAIN Restore Filter Bypass Leading to Remote Code Execution
- Vendor
- Pgadmin
CVE-2025-13780 is a command injection vulnerability affecting pgAdmin 4 versions through 9.10 when running in server mode and restoring PLAIN-format database dumps. The has_meta_commands() filter, introduced to address CVE-2025-12762, does not interpret certain input bytes consistently with psql. A crafted dump beginning with a UTF-8 byte order mark or certain other special byte sequences can conceal dangerous meta-commands from validation. When psql processes the dump, it strips those bytes and executes commands that escaped detection, potentially allowing arbitrary shell command execution on the pgAdmin host.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary command execution on the server hosting pgAdmin, within the operating-system privileges of the restore process. This can compromise application integrity and expose or modify database credentials, managed data, and other resources accessible to that process. The extent of host compromise depends on the process privileges and accessible resources.
Mitigation
If you can’t patch tonight, do this now.
Until the upgrade is deployed, prevent untrusted PLAIN-format dumps from being restored through pgAdmin in server mode. Restrict access to restore functionality and accept restore files only from trusted, verified sources. These measures reduce exposure but do not correct the filter bypass.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4, including installations using the PyPI pgadmin4 package, to version 9.11 or a later fixed release. Version 9.11 uses psql's \restrict command during restore to block hazardous operations at execution time rather than relying solely on input filtering.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-13780 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2025-13780 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-13780?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2025-13780, the earliest disclosed Dec 12, 2025.
- Is there a patch for CVE-2025-13780?
- Upgrade pgAdmin 4, including installations using the PyPI pgadmin4 package, to version 9.11 or a later fixed release. Version 9.11 uses psql's \restrict command during restore to block hazardous operations at execution time rather than relying solely on input filtering.
- What products are affected by CVE-2025-13780?
- Pgadmin 4.
- How severe is CVE-2025-13780?
- CVE-2025-13780 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.95% (62nd percentile) as of Nov 17, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.