Description

The pgAdmin team has patched four security flaws affecting versions up to 9.9, including a critical remote-code-execution vulnerability (CVE-2025-12762, CVSS 9.1). The flaw allows attackers to trigger system-level command execution using specially crafted PostgreSQL dump files. Complementary issues in Windows command handling and LDAP authentication further increase the exploitation surface for both local and remote attacks. The primary flaw, CVE-2025-12762, resides in how pgAdmin processes PLAIN-format PostgreSQL dump files when operating in server mode. During the restore process, pgAdmin parses the contents of the dump file without adequate sanitization, enabling attackers to embed malicious system commands that the pgAdmin host process will execute with its underlying OS privileges. This vulnerability becomes particularly dangerous in multi-user or shared environments where dump files may originate from unverified sources. Complementing this, CVE-2025-12763 affects pgAdmin 4 on Windows, where the backup/restore routine uses shell=True, allowing crafted file paths to break out of expected execution flow and run arbitrary commands. Meanwhile, CVE-2025-12764 allows LDAP injection through unvalidated username fields, enabling DoS or unauthorized LDAP queries, and CVE-2025-12765 permits bypassing TLS certificate verification during LDAP authentication, creating opportunities for MitM attacks or credential interception.