VulnWatch by ve1ve2
critical 9.1 EPSS 12.7%

GHSA-fxmw-jcgr-w44v / CVE-2025-13780: pgadmin4 has a Meta-Command Filter Command Execution

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
pgadmin4

https://github.com/advisories/GHSA-fxmw-jcgr-w44v ↗

ghsapipCWE-77CWE-94

pgadmin4 has a Meta-Command Filter Command Execution 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: pip:pgadmin4 Patched: pgadmin4 9.11

Linked vulnerabilities (3)

CVE-2025-12762 critical 9.1 EPSS 12.7% (p96) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode

CWE: CWE-94Aliases: GHSA-w2p4-p4rh-qcm3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

pgadmin4 has a Meta-Command Filter Command Execution

CWE: CWE-77, CWE-94Aliases: CVE-2025-13780, CVE-2025-12762
CVE-2025-13780 critical 9.1 EPSS 0.95% (p62) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

pgadmin4 has a Meta-Command Filter Command Execution

CWE: CWE-77, CWE-94Aliases: GHSA-fxmw-jcgr-w44v, CVE-2025-12762