CVE-2026-17347: The MASTER_PASSWORD_HOOK setting, introduced in pgAdmin 4 7.2, lets an administrator configure an external com
CVE-2026-17347 is a high-severity flaw (CVSS 7.5) affecting pgadmin 4. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 (
Why this priority
- High severity
A fixed release or distro patch exists.
Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Write-up: github.com/pgadmin-org/pgadmin4/commit/e7a85767314e7b0fe0b35fe80b9c1af38f48dff6
- Write-up: github.com/pgadmin-org/pgadmin4/commit/ea7e798aac27174d2bacee1d6e136bed76a95e23
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-17347?
pgadmin 4: upgrade to 9.17. Exact commands for each OS are on this page.
Is CVE-2026-17347 being exploited?
CVE-2026-17347 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-17347 affect?
CVE-2026-17347 affects pgadmin 4. Severity is high (CVSS 7.5). 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 im
How urgent is CVE-2026-17347?
Priority 40/100. High severity
Related CVEs
- CVE-2026-17566 CRITICAL 9.9 UPGRADE pgAdmin 4's Import/Export Data tool builds a psql \copy (...) command line by interpolating a user-supplied SQ
- CVE-2026-17346 HIGH 8.8 UPGRADE The fix for CVE-2026-12044 in pgAdmin 4 9.16 hardened qtLiteral and switched sixteen COMMENT ON / pgstattuple
- CVE-2026-17349 CRITICAL 9.6 UPGRADE /misc/workspace/adhoc_connect_server, part of the Workspaces feature introduced in pgAdmin 4 9.0, when passed
- CVE-2026-17351 CRITICAL 9.0 UPGRADE The fix for CVE-2026-12045 in pgAdmin 4 9.16 required the LLM-supplied query passed to the AI Assistant's exec
- CVE-2026-17348 MEDIUM 6.5 UPGRADE In SERVER mode, pgAdmin 4 enforces authentication per route via the @pga_login_required decorator; the applica