CVE-2026-17347
Last modified
CVE-2026-17347 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. The MASTER_PASSWORD_HOOK setting, introduced in pgAdmin 4 7.2, lets an administrator configure an external command that returns a per-user encryption key, with %u in the configured string replaced by the current user's name. The previous implementation substituted the username directly into the command string and executed the result with subprocess.Popen(..., shell=True). EPSS estimates a 0.27% chance of exploitation in the next 30 days.
Description
The MASTER_PASSWORD_HOOK setting, introduced in pgAdmin 4 7.2, lets an administrator configure an external command that returns a per-user encryption key, with %u in the configured string replaced by the current user's name. The previous implementation substituted the username directly into the command string and executed the result with subprocess.Popen(..., shell=True). Because the username can originate from an external authentication source (OAuth/OIDC claims, Kerberos, webserver auth) rather than a value pgAdmin fully controls, a username containing shell metacharacters (';', '$()', backticks, pipes, '&&', newlines) allowed an authenticated user to execute arbitrary commands as the pgAdmin service account in any deployment where the configured hook string uses %u. Fix tokenises the trusted, administrator-configured hook string into an argument vector first (using shlex in POSIX-quoting mode, with backslash-escaping disabled so Windows-style paths are not mis-parsed), substitutes the untrusted username into the individual argv elements, and executes with shell=False. The username is therefore always confined to a single argv element; any shell metacharacters it contains are inert. Administrators whose MASTER_PASSWORD_HOOK previously relied on shell features (pipes, redirection, environment-variable expansion, globbing) within the hook string itself must move that logic into the invoked script, since it is no longer interpreted by a shell. This issue affects pgAdmin 4: from 7.2 before 9.17.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pgadmin | Pgadmin 4 | >= 7.2, < 9.17 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-17347?
How severe is CVE-2026-17347?
How do I fix CVE-2026-17347?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-1730The OS DataHub Maps plugin for WordPress is vulnerable to ar…8.8
- CVE-2026-1731BeyondTrust Remote Support (RS) and certain older versions o…9.8
- CVE-2026-1732GitLab has remediated an issue in GitLab CE/EE affecting all…4.3
- CVE-2026-1733A vulnerability was identified in Zhong Bang CRMEB up to 5.6…4.3
- CVE-2026-1734A security flaw has been discovered in Zhong Bang CRMEB up t…5.5
- CVE-2026-17346The fix for CVE-2026-12044 in pgAdmin 4 9.16 hardened qtLite…8.8
- CVE-2026-17348In SERVER mode, pgAdmin 4 enforces authentication per route …6.9
- CVE-2026-17349/misc/workspace/adhoc_connect_server, part of the Workspaces…9.6
- CVE-2026-1735A weakness has been identified in Yealink MeetingBar A30 133…4.3
- CVE-2026-17350The per-tool permission system (custom roles / role-based to…5.4
- CVE-2026-17351The fix for CVE-2026-12045 in pgAdmin 4 9.16 required the LL…9
- CVE-2026-1736A security vulnerability has been detected in Open5GS up to …5.5
Are you affected by CVE-2026-17347?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
