llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · langflow

GHSA-9FPM-3445-2VX4

Langflow: Prompt injection in Langflow Smart Transform can lead to code execution

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -74 d de la divulgación
Exposición44 dDesde la divulgación, 5 oct 2026, 5:30 p. m.
Detección42 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 1.10.3
Monitoreo
Detectada
23 jul 26
5 oct 26
15 oct 26
17 nov 26
19 nov 26
23 jul 26
22 ago 26
21 sept 26
21 oct 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.10.3 langflow · -74 d desde divulgación
Divulgación Publicada GHSA-9FPM-3445-2VX4 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

Langflow versions 1.3.0 through 1.10.2 contain a code-injection vulnerability in the Smart Transform (`LambdaFilterComponent`) component.

Smart Transform places flow-author instructions and a preview of its input data into a prompt asking an LLM to generate a Python lambda. It then extracts a one-line lambda from the model response, applies only syntactic format checks, evaluates it with Python's full builtins, and invokes the resulting function inside the Langflow process.

A malicious flow author can exploit this directly through the Instructions field. In deployments where an exposed flow passes attacker-controlled content into Smart Transform, an attacker may also exploit it indirectly through prompt injection, subject to the configured model following the injected instruction.

Vulnerability details

Vulnerable Code Location: `src/lfx/src/lfx/components/llm_operations/lambda_filter.py` (line 242 in v1.10.2)

def _validate_lambda(self, lambda_text: str) -> bool:
    """Validate the provided lambda function text."""
    return lambda_text.strip().startswith("lambda") and ":" in lambda_text

# ...
return eval(lambda_text)  # noqa: S307

For example, an attacker can attempt to make the model return:

`lambda x: __import__("os").system("id")`

This expression satisfies the vulnerable format checks. `eval()` creates the lambda with access to Python's default builtins, and the subsequent `fn(data)` invocation (in `_execute_lambda`) executes the command.

Successful exploitation allows code execution with the privileges of the Langflow service process. This can expose or modify credentials, files, application data, and network resources accessible to that process, and may affect other tenants in shared deployments.

PoC

https://github.com/user-attachments/assets/13c48fe1-7225-4e0d-9687-2d2df1e87f0e

Fix

The reported path was addressed by validating the generated code's AST and evaluating it with a restricted builtins mapping.

The mainline fix is in PR #13530 (`1641b28f`) and shipped in Langflow 1.11.0. The 1.10.3 backport is in PR #14071 (`94859df3`). Users should upgrade to Langflow 1.10.3 or later.

Workarounds

Until an upgrade is possible:
- Remove Smart Transform from runnable flows.
- Restrict flow creation, editing, and execution to trusted users.
- Do not route untrusted or externally controlled data through Smart Transform.
- Limit the Langflow process's filesystem, network, and credential access.

Credit

  • Peyton Kennedy (p80n-sec https://github.com/p80n-sec) of Endor Labs — reporter (original finder)
  • SZXSec https://github.com/SZXSec — reporter (duplicate report)
  • cyjhhh https://github.com/cyjhhh — reporter (duplicate report)
  • 0gur1 https://github.com/0gur1 — reporter (duplicate report)
  • ajm4n https://github.com/ajm4n — reporter (duplicate report, Finding 1 of a multi-finding submission)
  • andifilhohub https://github.com/andifilhohub — analyst
  • Jordan Frazier (jordanrfrazier https://github.com/jordanrfrazier) — remediation developer

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
langflow≥ 1.3.0 < 1.10.3
1.3.0
1.10.3
1.13.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypilangflow
Corregida 1.10.3 -74 d 1.13.2 no afectada
Versiones corregidas1.10.3
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-7700
Otrahttps://github.com/langflow-ai/langflow/security/advisories/GHSA-9fpm-3445-2vx4
Otrahttps://github.com/langflow-ai/langflow/pull/13530
Otrahttps://github.com/langflow-ai/langflow/commit/1641b28f33e2c47b9a0c6855922d44d1b8418b9d
Otrahttps://github.com/langflow-ai/langflow/commit/94859df33acd70b2a1f816e26d68f5e89a7e5639
Otrahttps://github.com/langflow-ai/langflow
Otrahttps://github.com/langflow-ai/langflow/releases/tag/v1.10.3
Otrahttps://vuldb.com/submit/804305
Otrahttps://vuldb.com/vuln/360869
Otrahttps://www.yuque.com/mengnanbulalei/ognlsk/hte2a98ro5gf8tp9?singleDoc#%20%E3%80%8AFirst%20release%20of%20Langflow%201.8.3%20Smart%20Transform%20eval()/Lambda%20injection%20RCE%20vulnerability%20analysis+POC%E3%80%8B

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.