Web Application
CVE-2026-17347 high CVSS 7.5

Injection de commande OS dans Pgadmin4 (CVE-2026-17347)

Résumé

Injection de commande OS dans Pgadmin4 (CVE-2026-17347). L'exploitation peut entraîner la prise de contrôle totale du système.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

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: f…

Source: NIST National Vulnerability Database NVD GitHub Advisory

Résumé IA

Rédigé par une IA externe ; il peut contenir des erreurs. Vérifiez la description d'origine et les références ci-dessous avant d'agir.

Une vulnérabilité référencée CVE-2026-17347 a été découverte dans pgadmin4.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 7.5/10.
Action : appliquez le correctif officiel de l'éditeur.
En cas de doute, contactez votre service informatique ou cherchez « pgadmin4 CVE-2026-17347 » sur le site de l'éditeur.

CVE-2026-17347 (pgadmin4) — CWE-78 / CVSS v3 7.5
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.

❓ Quel est le problème

pgAdmin 4のMASTER_PASSWORD_HOOK設定で任意のコマンドが実行可能となる脆弱性。

📍 Périmètre concerné

pgAdmin 4 バージョン7.2から9.17まで。

🔥 Gravité

認証ユーザーにより任意のコマンドが実行可能であるため、セキュリティリスクが高い。

🔧 Comment corriger

信頼されていないユーザー名を引数ベクトルにトークン化し、shell=Falseで実行します。既存のシェル機能を依存しているロジックは分離します。

🛡️ Contournement

情報なし

🔍 Détection

pgAdminのバージョンを確認し、影響を受けるバージョンが使用されているかをチェックする。

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus