CVE-2026-0770: Langflow Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-g22f-v6f7-2hrh
CWE-829
Published
Advisory Summary

CVE-2026-0770 is a HIGH remote code execution vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Langflow libraries in the PyPI ecosystem. The issue involves langflow affected by remote code execution via validate_code() exec(). Remediation is available in the latest vendor maintenance releases.

CVE-2026-0770 at a Glance

CVE Identifier CVE-2026-0770
GHSA Identifier GHSA-g22f-v6f7-2hrh
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Langflow
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-0770

To remediate this vulnerability, upgrade all affected Langflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

langflow fixed: Latest secure release
pip install langflow>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show langflow

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-0770, inspect your installed packages using pip:

pip show langflow

Analyze the terminal output to locate any version of Langflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show langflow command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Langflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of the exec_globals parameter provided to the validate endpoint. The issue results from the inclusion of a resource from an untrusted control sphere. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27325.

CVE-2026-0770 Affected Langflow Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
langflow
PyPI
≤ 1.7.3

References

Frequently Asked Questions

What is CVE-2026-0770?
CVE-2026-0770 is a security vulnerability in Langflow involving Langflow affected by Remote Code Execution via validate_code() exec() under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Langflow versions are affected?
Affected versions include releases prior to current release patches across affected packages: langflow.
What version fixes CVE-2026-0770?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is langflow affected?
Yes, langflow is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2026-0770?
CVE-2026-0770 is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check PyPI dependencies for CVE-2026-0770?
Run the dependency tree command: 'pip show langflow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g22f-v6f7-2hrh",
  "modified" : "2026-02-19T22:09:30Z",
  "published" : "2026-01-23T06:31:24Z",
  "aliases" : [ "CVE-2026-0770" ],
  "summary" : "Langflow affected by Remote Code Execution via validate_code() exec()",
  "details" : "Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the handling of the exec_globals parameter provided to the validate endpoint. The issue results from the inclusion of a resource from an untrusted control sphere. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27325.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "langflow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.7.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-0770"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/affix/CVE-2026-0770-PoC"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/langflow-ai/langflow"
  }, {
    "type" : "WEB",
    "url" : "https://www.zerodayinitiative.com/advisories/ZDI-26-036"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-829" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-19T22:09:30Z",
    "nvd_published_at" : "2026-01-23T04:16:04Z"
  }
}