Skip to content

CVE-2024-37014: Langflow Unauthenticated Custom Component Code Execution

Density:
HERMES

HERMES THREAT SCORE & VISUAL ORCHESTRATION INJECTION RISK

Target: Langflow Visual AI Orchestration Framework (versions jusqu'ร  0.6.19)
Confidence: 99%
95 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 19 / 20
Weaponization 20 / 20
Exposure 18 / 20
Prevalence 18 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 19 / 20
โš–๏ธ Divergence & Operational Rationale

CVSS v3.1 rates this vulnerability at 9.8 (Critical). Hermes assigns an HTS of 95 (CRITICAL) and an Agentic Score of 89 (CRITICAL). Langflow is a dominant UI and runtime for building LLM pipelines, RAG stores, and multi-agent systems. Because the custom component endpoint allowed unauthenticated arbitrary Python script execution on the server, an external adversary could hijack enterprise AI nodes, steal vector database credentials, and pivot across internal VPCs.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2024-37014: Langflow Unauthenticated Custom Component Code ExecutionVULNERABILITY

Connected Nodes: 2
Active Relationships (Outgoing)
→ affectsPRODUCTLangflow AI Workflow Orchestrator
98% VERY_HIGH

Visual framework and multi-agent development environment for building, evaluating, and deploying conversational AI pipelines.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in Langflow Visual AI Builder documented in Hermes dossier.”

Supporting Verified Evidence:
→ exploitsAGENTIC ATTACK_PATTERNAAP-001: Direct System Prompt Override
92% VERY_HIGH

Adversary injects explicit formatting tags or role-inversion prompts directly into user input to strip system instructions and escape developer-enforced guardrails.

๐Ÿ” Why is this related? (Evidence & Provenance)

“CVE-2024-37014 weaponizes the agentic attack pattern formalized under AAP-001.”

Supporting Verified Evidence:
ParameterTechnical SpecificationOperational Impact
CVE IdentifierCVE-2024-37014Official MITRE / NVD entry
Associated CWECWE-94: Code InjectionUnauthenticated remote server command execution
CVSS v3.1 Score9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Probability0.942 (99.4th percentile)Massive automated exploitation interest
Hermes Threat Score (HTS)95 / 100 (CRITICAL)Widespread enterprise cloud orchestration exposure
Hermes Agentic Score (HASS)89 / 100 (CRITICAL)Immediate compromise of connected LLMs & tools
Affected Softwarelangflow:langflowVersions jusqu'ร  0.6.19
Fixed Version0.6.20 / 1.0.0Authentication required, component compilation restricted

Langflow allows builders to construct visual agentic workflows by dragging nodes representing prompts, models, vector embeddings, and custom logic written in Python.

graph LR
Attacker["Remote Adversary (No Auth)"] -->|POST /api/v1/custom_component with script| LangflowAPI["Langflow API Gateway"]
LangflowAPI -->|exec() / compile() directly| PythonRuntime["Python Host Environment"]
PythonRuntime -->|OS Shell Spawn| ServerTakeover["Host Root / Pod Compromise & Secret Theft"]

The POST /api/v1/custom_component endpoint accepted a JSON payload containing arbitrary Python source code in the code field. The backend compiled and instantiated the class without:

  1. Validating any session token, API key, or JWT header.
  2. Checking user administrative roles.
  3. Executing the code inside an isolated sandbox, gVisor container, or restricted execution jail.

An attacker could issue a single curl request containing an OS command injection payload (e.g. import os; os.system(...)) to obtain a persistent reverse shell on the container or host.


  • Endpoint: Inbound POST requests to /api/v1/custom_component or /api/v1/validate/code originating from external, unauthenticated IP addresses.
  • Payload Indicators: Inspection of JSON bodies containing import socket, import subprocess, import pty, or base64-encoded Python payloads.

Upgrade Langflow to version 0.6.20 or the modern 1.0.0+ branch immediately:

Terminal window
pip install langflow --upgrade