Command Injection Vulnerability in pgAdmin 4 by pgAdmin Organization
CVE-2026-17347

7.7HIGH

Key Information:

Status
Vendor
CVE Published:
31 July 2026

What is CVE-2026-17347?

The MASTER_PASSWORD_HOOK setting in pgAdmin 4 versions from 7.2 to below 9.17 has a command injection vulnerability that allows authenticated users to execute arbitrary commands. This occurs because the implementation directly uses user-supplied usernames, potentially containing shell metacharacters, in an external command execution context. A malicious user can exploit this flaw by manipulating their username derived from external authentication sources like OAuth or Kerberos, leading to unauthorized command execution as the pgAdmin service account. Mitigations have been introduced that tokenize the command string, ensuring that usernames are handled correctly and securely, thus limiting the risk of such attacks.

Affected Version(s)

pgAdmin 4 7.2 < 9.17

References

CVSS V4

Score:
7.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Thiago Pereira (@B1gN0Se)
Dave Page <page@pgadmin.org>
Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Kundan Sable <kundan.sable@enterprisedb.com>
.