Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-17347

published high CVSS 4.0 · 7.7

pgAdmin 4: OS command injection in MASTER_PASSWORD_HOOK via untrusted username substitution

Published
31 Jul 2026, 15:59:16 UTC
Updated
01 Aug 2026, 03:56:12 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
pgadmin.org — pgAdmin 47.2 to < 9.17 · Other versions: unaffected Affected Not stated PostgreSQL
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4aarch64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4ppc64le Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4s390x Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4x86_64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-desktopaarch64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-desktopppc64le Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-desktops390x Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
Show 13 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-desktopx86_64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-docaarch64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-docppc64le Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-docs390x Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-docx86_64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-web-uwsgiaarch64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-web-uwsgippc64le Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-web-uwsgis390x Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed pgadmin4-web-uwsgix86_64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed system-user-pgadminaarch64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed system-user-pgadminppc64le Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed system-user-pgadmins390x Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1
SUSE / openSUSE openSUSE-Tumbleweed system-user-pgadminx86_64 Advisory build 9.17-1.1 OPENSUSE-SU-2026:11508-1

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.

en · PostgreSQL · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
7.7 / 10
Severity
high
Provider
PostgreSQL · cna
Vector string
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
Scenarios
en: Same reasoning as the CVSS 3.1 entry: authenticated low-privilege user with an externally-sourced username triggers arbitrary OS command execution as the pgAdmin service account, contingent on the non-default MASTER_PASSWORD_HOOK/%u configuration (AT:N here refers to no additional authentication target beyond the login itself; the configuration dependency is captured via AC:H in the 3.1 vector and is implicit in this scenario). VC:H/VI:H/VA:H for the service account's own reach; SC:N/SI:N/SA:N since that reach is the application's own process authority, not a distinct subsequent system.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.5 high PostgreSQL · cna CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H en: Threat model (per reporter's submitted rating): an authenticated pgAdmin user whose username is sourced from an external identity provider (OAuth/OIDC, Kerberos, or webserver auth passed through to pgAdmin) in a deployment where MASTER_PASSWORD_HOOK's configured string contains %u. Attack Complexity is High because exploitation depends on this non-default configuration (hook enabled with %u, combined with an external-auth username source under attacker influence) rather than being reachable in a default deployment. Scope is Unchanged: the resulting command execution runs as the pgAdmin service account, which is the same security authority the web application process itself already runs under -- it is a consequence of pgAdmin's own process, not a boundary crossing into an unrelated authority. Confidentiality/Integrity/Availability are High because arbitrary command execution as that account can read, modify, or destroy anything the account can reach.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
pgadmin.org pgAdmin 4 7.2 to < 9.17 (affected · custom)Default: unaffected PostgreSQL · cna

Weaknesses

2
  • CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (PostgreSQL · cna)
  • CWE-88 CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (PostgreSQL · cna)

References

3

Provider assertions

2

PostgreSQL · cna

pgAdmin 4: OS command injection in MASTER_PASSWORD_HOOK via untrusted username substitution

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
c578fe122347b4d5c0d8e4dcb3fa38746eb2f028191a63bde175e29e61e942ad
Ingested
23 Sep 2026, 09:03:03 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected