---
id: CVE-2026-0770
aliases:
  - GHSA-g22f-v6f7-2hrh
  - PYSEC-2026-1525
title: Langflow affected by Remote Code Execution via validate_code() exec()
summary: Langflow affected by Remote Code Execution via validate_code() exec()
severity: high
vendor: langflow
product: langflow
ecosystem: pip
affected:
  - langflow <= 1.7.3
published: '2026-01-23'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-g22f-v6f7-2hrh'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-0770'
  - url: 'https://github.com/affix/CVE-2026-0770-PoC'
  - url: 'https://github.com/langflow-ai/langflow'
  - url: 'https://www.zerodayinitiative.com/advisories/ZDI-26-036'
tags:
  - osv
  - pip
  - exploit-available
  - kev
  - in-the-wild
epss: 0.63839
epssPercentile: 0.99185
exploitAvailable: true
zeroDay: true
ingestedAt: '2026-07-08T18:25:49.173Z'
kev: true
exploited: true
kevDateAdded: '2026-07-21'
kevDueDate: '2026-07-24'
kevRansomware: false
exploits:
  exploitdb: true
  github: 7
  githubRepos:
    - 'https://github.com/affix/CVE-2026-0770-PoC'
    - 'https://github.com/0xgh057r3c0n/CVE-2026-0770'
    - 'https://github.com/Yetazyyy/CVE-2026-0770'
  nuclei:
    - CVE-2026-0770
  checkedAt: '2026-09-24T07:52:56.271Z'
---

## Overview

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.

## Affected packages

- `langflow <= 1.7.3`

## Remediation

Refer to the advisory for the patched release.
