Injection de code dans langlow (CVE-2026-10561)
Résumé
Injection de code dans langlow (CVE-2026-10561). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via PythonREPLComponent. Atténuation : mise à jour vers 1.10.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
Langflow's built-in Python interpreter components — PythonREPLComponent (Python Interpreter) and the legacy PythonREPLToolComponent (Python REPL Tool) — executed arbitrary user- or model-supplied Python code inside flows without effective sandboxing. Because the code ran in-process with the privileges of the Langflow service, any authenticated user who could edit and run a flow could achieve remote code execution and, from there, escalate privileges to superuser (e.g. by opening a database session and flipping is_superuser) or compromise the host.
This issue is fixed as of 1.10.1, with additional hardening through 1.12.3. See Remediation below.
Affected
- Package:
langflow(PyPI), and the underlyinglfxpackage that ships the component. - Vulnerable versions:
< 1.10.1. - Patched:
1.10.1(core fix). Upgrade to>= 1.12.3for the complete hardening series.
Details
The root cause is code injection (CWE-94/CWE-95): the component passed raw input to LangChain's PythonREPL, which is explicitly not a security sandbox.
Two distinct weaknesses existed before 1.10.1:
- Unrestricted builtins (default deployments).
get_globals()built theexecglobals from theglobal_importsallow-list but never set__builtins__. CPython'sexec()then auto-injected the fullbuiltinsmodule, leaving__import__,open,eval,execand the whole import machinery reachable regardless of the allow-list — e.g. `__im…
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-10561 a été découverte dans langlow.
Des attaquants peuvent cibler un point d'entrée spécifique comme PythonREPLComponent à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 10.0/10.
Action : mettez à jour langlow vers 1.10.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « langlow CVE-2026-10561 » sur le site de l'éditeur.
CVE-2026-10561 (langlow) — CWE-94 / CVSS v3 10.0
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : PythonREPLComponent / PythonREPLToolComponent / is_superuser / langflow
Correctif : 1.10.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 exécution de code arbitraire (CWE-94) affecte langlow. Les attaquants atteignent le code vulnérable via PythonREPLComponent sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de langlow. Surface d'attaque : PythonREPLComponent / PythonREPLToolComponent / is_superuser / langflow.
Gravité : Critique (CVSS 10.0/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 1.10.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 'langlow' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
langlowを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade langlow to 1.10.1ステージング環境で 1.10.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- web ibm.com
- web nvd.nist.gov
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com