| Advisory ID | pypa/langflow/PYSEC-2026-1525 |
| Aliases |
CVE-2026-0770
GHSA-g22f-v6f7-2hrh PYSEC-2026-1525 |
| Summary | Langflow affected by Remote Code Execution via validate_code() exec() 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. |
| Status | Published |
| Exploitability | 2.0 |
| Weighted Severity | 8.0 |
| Risk | 10.0 |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| There are no known CWE. |
| System | Score | Found at |
|---|---|---|
| cvssv4 | 8.9 | https://github.com/pypa/advisory-database/blob/main/vulns/langflow/PYSEC-2026-1525.yaml |
| Reference id | Reference type | URL |
|---|---|---|
| https://github.com/langflow-ai/langflow | ||
| https://pypi.org/project/langflow | ||
| https://www.zerodayinitiative.com/advisories/ZDI-26-036 | ||
| CVE-2026-0770 | https://nvd.nist.gov/vuln/detail/CVE-2026-0770 | |
| CVE-2026-0770-POC | https://github.com/affix/CVE-2026-0770-PoC | |
| GHSA-g22f-v6f7-2hrh | https://github.com/advisories/GHSA-g22f-v6f7-2hrh |
| Data source | Exploit-DB |
|---|---|
| Date added | May 29, 2026 |
| Description | Langflow 1.3.0 - Remote Code Execution |
| Ransomware campaign use | Unknown |
| Source publication date | May 29, 2026 |
| Exploit type | webapps |
| Platform | multiple |
| Source update date | May 29, 2026 |
| Data source | Metasploit |
|---|---|
| Description | Langflow versions up to and including 1.7.3 contain a remote code execution vulnerability in the `validate` endpoint where unsanitized values in `exec_globals`/`code` allow an attacker to execute arbitrary Python code. This module abuses the `/api/v1/auto_login` (or `/api/v1/login`) and `/api/v1/validate/code` endpoints to execute an arbitrary Metasploit command payload. |
| Note | Stability: - crash-safe Reliability: - repeatable-session SideEffects: - ioc-in-logs |
| Ransomware campaign use | Unknown |
| Source publication date | May 23, 2026 |
| Platform | Unix |
| Source URL | https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/langflow_rce_cve_2026_0770.rb |
| Data source | KEV |
|---|---|
| Date added | July 21, 2026 |
| Description | Langflow contains an inclusion of functionality from untrusted control sphere vulnerability that allows remote attackers to execute arbitrary code on affected installations. |
| Required action | Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines. |
| Due date | July 24, 2026 |
| Note | https://github.com/langflow-ai/langflow/releases/tag/v1.9.0 ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-0770 |
| Ransomware campaign use | Unknown |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Attack Vector (AV) | Attack Complexity (AC) | Attack Requirements (AT) | Privileges Required (PR) | User Interaction (UI) | Vulnerable System Impact Confidentiality (VC) | Vulnerable System Impact Integrity (VI) | Vulnerable System Impact Availability (VA) | Subsequent System Impact Confidentiality (SC) | Subsequent System Impact Integrity (SI) | Subsequent System Impact Availability (SA) |
|---|---|---|---|---|---|---|---|---|---|---|
network adjacent local physical |
low high |
none present |
none low high |
none passive active |
high low none |
high low none |
high low none |
high low none |
high low none |
high low none |
Vector: SSVCv2/E:A/A:Y/T:T/P:M/B:A/M:M/D:C/2026-07-21T15:45:21Z/
Decision: Act
Source URL: https://github.com/cisagov/vulnrichment/blob/develop/2026/0xxx/CVE-2026-0770.json
Source Advisory: vulnrichment/CVE-2026-0770
[{'Exploitation': 'active'},
{'Automatable': 'yes'},
{'Technical Impact': 'total'},
{'Mission Prevalence': 'minimal'},
{'Public Well-being Impact': 'material'},
{'Mission & Well-being': 'medium'}]