All vulnerabilities

Servers and applications

CVE-2026-17347

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…

Severity
High 7.7
Published
31 Jul 2026
Last changed
23 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
9.17
Exploit chance
0.7% in the next 30 daysHigher than 54% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
OS command injection (CWE-78)Argument injection (CWE-88)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
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
Sources
NVD

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),…

From NVD. Shortened; the full text is there.

Affected software

SoftwareAffected versions
pgAdminServers and applications · cpe:a:pgadmin:pgadmin_4
  • From 7.2 before 9.17

About pgAdmin

graphical administration tool for PostgreSQL

From Wikidata, CC0 1.0.
Weekly downloads (PyPI)
5,570PyPI Stats, 15 Nov 2026
Docker Hub pulls
455,658,756Docker Hub, 15 Nov 2026
GitHub stars
3,940GitHub, 15 Nov 2026
Forks
921GitHub, 15 Nov 2026
License
PostgreSQL LicenseWikidata
Written in
Python, JavaScriptWikidata
First published on GitHub
20 Feb 2017GitHub

Release lines

ReleaseLatestSecurity fixes
99.19Yes
88.14Ended 6 Feb 2025
77.8Ended 23 Nov 2023
66.21Ended 13 Apr 2023
55.7Ended 7 Oct 2021
44.30Ended 25 Feb 2021

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-17347
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-17347