CVE-2025-13780
Critical · 9.1pgadmin4 has a Meta-Command Filter Command Execution
CVSS
9.1
EPSS
0.9%
Published
Dec 11, 2025
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | pgadmin4 | 0 | 9.11 |
| openSUSE:Tumbleweed | pgadmin4 | 0 | 9.11-1.1 |
Related vulnerabilities
- GHSA-fxmw-jcgr-w44v pgadmin4 has a Meta-Command Filter Command Execution Same vulnerability
- GHSA-3p7x-94q9-jq9x pgadmin4 affected by a Restore restriction bypass via key disclosure vulnerability Also affects pgadmin4
- CVE-2026-1707 pgAdmin versions 9.11 are affected by a Restore restriction bypass via key disclosure… Also affects pgadmin4
- GHSA-cvf4-f829-762v pgAdmin is affected by an LDAP injection vulnerability Also affects pgadmin4
- GHSA-g4r8-3qmh-pmch pgAdmin has vulnerability in LDAP authentication mechanism that allows bypassing TLS… Also affects pgadmin4
- GHSA-rm79-x4g6-hvg5 pgAdmin 4 has command injection vulnerability on Windows systems Also affects pgadmin4
- GHSA-w2p4-p4rh-qcm3 pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode Also affects pgadmin4
- CVE-2025-12763 pgAdmin 4 has command injection vulnerability on Windows systems Also affects pgadmin4