CVE-2026-105740: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in langflow-ai langflow
Description
Langflow versions prior to 1.9.0 contain a critical OS command injection vulnerability that allows any authenticated user to execute arbitrary commands on the server. This occurs because user-supplied commands are passed directly to a bash shell without validation or sandboxing. The vulnerability also permits arbitrary environment variable injection. The issue is fixed in version 1.9.0.
CVSS v3.1
Score 9.9critical
Affected software
langflow-ai
langflow
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-105740 is an OS command injection vulnerability in langflow-ai's langflow tool, affecting versions before 1.9.0. Authenticated users can achieve remote code execution by adding an MCP server with the "Stdio" transport, where the command field is passed unsanitized to bash -c "exec {command}". No validation, allowlisting, or sandboxing is performed, leading to immediate command execution when the server list is fetched. Additionally, the env field allows injection of arbitrary environment variables such as LD_PRELOAD or PATH overrides. The vulnerability is resolved in langflow version 1.9.0.
Potential Impact
An authenticated attacker can remotely execute arbitrary code on the server running langflow, potentially leading to full system compromise. The vulnerability affects confidentiality, integrity, and availability, as indicated by the CVSS score of 9.9. The ability to inject environment variables further increases the attack surface.
Mitigation Recommendations
Upgrade langflow to version 1.9.0 or later, where this vulnerability is fixed. No other mitigations are specified or recommended by the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-05T19:11:07.946Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac415412cdf04f6563b26ae
Added to database: 10/05/2026, 21:23:13 UTC
Last enriched: 10/05/2026, 21:33:23 UTC
Last updated: 10/05/2026, 21:33:23 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.