GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OS command injection in MASTER_PASSWORD_HOOK via untrusted username substitution (CVE-2026-17347) · Issue #10191 · pgadmin-org/pgadmin4

OS command injection in MASTER_PASSWORD_HOOK via untrusted username substitution (CVE-2026-17347) #10191

New issue
Copy link
New issue
Copy link
Closed
Closed
OS command injection in MASTER_PASSWORD_HOOK via untrusted username substitution (CVE-2026-17347)#10191
Copy link
Milestone
9.17

Description

@asheshv
asheshv
opened on Jul 24, 2026
Issue body actions

Summary

The MASTER_PASSWORD_HOOK setting 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). When the username is externally sourced (e.g. via OAuth2/OIDC, Kerberos, or webserver authentication), a username containing shell metacharacters could execute arbitrary commands as the pgAdmin service account.

The fix tokenizes the configured hook string first, substitutes %u per-argument, and executes with shell=False.

Affected versions

pgAdmin 4 >= 7.2, < 9.17

Fix

Fixed in pgAdmin 4 9.17 by commits ea7e798aa and e7a857673.

Severity

  • CVSS 3.1: 7.5 HIGH — CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • CVSS 4.0: 7.7 HIGH — 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

Credit

Reported by Thiago Pereira (@B1gN0Se).

References

  • CVE: CVE-2026-17347
  • Release notes: pgAdmin 4 9.17

Activity

  1. asheshv
    changed the title [-]Internal tracking: pending fix for 9.17[/-] [+]OS command injection in MASTER_PASSWORD_HOOK via untrusted username substitution (CVE-2026-17347)[/+] on Jul 31, 2026
  2. asheshv
    added this to the 9.17 milestone on Jul 31, 2026
  3. asheshv commented on Jul 31, 2026

    @asheshv
    asheshv
    on Jul 31, 2026
    ContributorAuthor
    More actions

    Fixed in pgAdmin 4 9.17, released 2026-07-30.

  4. asheshv
    closed this as completedon Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      • 9.17

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.