Injection de commande OS dans network-ai (CVE-2026-54051)
Résumé
Injection de commande OS dans network-ai (CVE-2026-54051). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via SandboxPolicy.isCommandAllowed. Atténuation : mise à jour vers 5.9.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Network-AI is a TypeScript/Node.js multi-agent orchestrator. Prior to version 5.9.1, the agent sandbox gates shell commands behind an allowlist (SandboxPolicy.isCommandAllowed), which THREAT_MODEL.md calls the main control against a compromised agent (Adversary 3.2). The allowlist glob-matches the whole command string, but ShellExecutor runs that string through /bin/sh -c. So any wildcard allow such as git *, npm * or node * also matches git status; , and a scoped command becomes arbitrary execution. The issue is fixed in v5.9.1. ShellExecutor now executes via spawn(file, args, { shell: false }) using a quote-aware parsed argv, so no shell is invoked. SandboxPolicy.isCommandAllowed and the new SandboxPolicy.tokenizeCommand reject any unquoted shell metacharacter (; & | $ ( ) < > { }newline) or unterminated quote before the allowlist glob match; quoted metacharacters are preserved as literal argument data. Users should upgrade tonetwork-ai@5.9.1or later. As defense in depth, avoid broad wildcard allowlist entries such asnode */npm *` which are direct code execution by design.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-54051 a été découverte dans network-ai.
Des attaquants peuvent cibler un point d'entrée spécifique comme SandboxPolicy.isCommandAllowed à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 9.9/10.
Action : mettez à jour network-ai vers 5.9.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « network-ai CVE-2026-54051 » sur le site de l'éditeur.
CVE-2026-54051 (network-ai) — CWE-78 / CVSS v3 9.9
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : SandboxPolicy.isCommandAllowed / ShellExecutor / isCommandAllowed / globMatch
Correctif : 5.9.1 — appliquer immédiatement
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.
Une injection de commande OS (CWE-78) affecte network-ai. Les attaquants atteignent le code vulnérable via SandboxPolicy.isCommandAllowed.
Consultez l'avis de l'éditeur pour les versions affectées de network-ai. Surface d'attaque : SandboxPolicy.isCommandAllowed / ShellExecutor / isCommandAllowed / globMatch.
Gravité : Critique (CVSS 9.9/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 5.9.1.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'network-ai' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
network-aiを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade network-ai to 5.9.1ステージング環境で 5.9.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com