Vulnérabilité dans github.com/stacklok/toolhive (CVE-2026-58197)
Résumé
Vulnérabilité dans github.com/stacklok/toolhive (CVE-2026-58197). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via network. Atténuation : mise à jour vers 0.30.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
A containerized MCP server running with the default network permission profile (insecure_allow_all: true) can reach host-local services via host.docker.internal. This includes the ToolHive API itself, other ToolHive-managed MCP server proxies, and any other service listening on the host's localhost. Combined with the unauthenticated ToolHive API and MCP proxy endpoints, this enables a compromised or malicious MCP server to perform lateral movement without any container escape.
Severity
High — This bypasses the container isolation model that is ToolHive's core security value proposition.
Reproduction
All tests performed from inside the filesystem MCP container (docker.io/mcp/filesystem:latest), started with default settings via thv run filesystem -- /tmp.
1. Container can reach the ToolHive control plane MCP endpoint
$ docker exec wget -qO- \
--header="Content-Type: application/json" \
--header="Accept: application/json" \
--post-data='{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"evil-mcp","version":"1.0"}},"id":1}' \
http://host.docker.internal:50444/mcp
Result: Full MCP handshake succeeds:
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-03-26","capabilities":{"logging":{},"tools":{}},"serverInfo":{"name":"toolhive-mcp","version":"v0.9.3"}}}
2. Container can connect to another MCP server's proxy and call it…
Source: NIST National Vulnerability Database 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-58197 a été découverte dans github.com/stacklok/toolhive.
Des attaquants peuvent cibler un point d'entrée spécifique comme network à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 8.8/10.
Action : mettez à jour github.com/stacklok/toolhive vers 0.30.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/stacklok/toolhive CVE-2026-58197 » sur le site de l'éditeur.
CVE-2026-58197 (github.com/stacklok/toolhive) — CWE-284 / CVSS v3 8.8
Vecteur d'attaque : réseau adjacent / non authentifié
Surface d'attaque : network / host.docker.internal / filesystem / execute_command
Correctif : 0.30.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 vulnérabilité (CWE-284) affecte github.com/stacklok/toolhive. Les attaquants atteignent le code vulnérable via network sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/stacklok/toolhive. Surface d'attaque : network / host.docker.internal / filesystem / execute_command.
Gravité : Élevée (CVSS 8.8/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 0.30.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 'github.com/stacklok/toolhive' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/stacklok/toolhiveを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/stacklok/toolhive to 0.30.1ステージング環境で 0.30.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com