CVE-2024-42835: langflow Remote Code Execution Vulnerability in PythonCodeTool Component

langflow Updated 02 Oct 2025

Summary

31/10/2024
No i
High
9.8

CVE-2024-42835: langflow has vulnerability in PythonCodeTool component. Affects langflow versions < 1.0.12. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

langflow is an open-source Python library designed for building and managing workflows in machine learning applications. It provides a user-friendly interface for integrating various components and tools, allowing developers to streamline their processes. However, version 1.0.12 of langflow has been found to contain a critical vulnerability that could allow remote code execution, posing significant security risks to applications utilizing this package.

Vulnerability Detail

The vulnerability in langflow arises from the PythonCodeTool component, which does not adequately validate input before executing code. This oversight allows an attacker to send crafted input that could execute arbitrary Python code on the server. The ramifications of this vulnerability are severe, as it could lead to unauthorized access, data breaches, or complete system compromise. The vulnerability has been assigned a CVSS score of 9.8, indicating its high severity and potential impact on affected systems.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If immediate updating is not feasible, consider implementing input validation and sanitization measures in your application to mitigate the risk of remote code execution. Additionally, restrict access to the affected components until the package can be updated.

Conclusion

The langflow package has a critical vulnerability (CVE-2024-42835) that allows for remote code execution through the PythonCodeTool component. It is essential for users of langflow to update to the latest version to protect their applications from potential attacks. Implementing workarounds can provide temporary relief, but updating is the best long-term solution.

See every vulnerability recorded for langflow →

Share this vulnerability

FAQ

CVE-2024-42835 is a vulnerability in the langflow package that allows for remote code execution through the PythonCodeTool component.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The potential impacts include unauthorized access to systems, data breaches, and the ability for attackers to execute arbitrary code, which could lead to complete system compromise.

Yes, a patch is available. You can update langflow to a version higher than 1.0.12 to mitigate the vulnerability.

If you cannot update immediately, implement input validation and restrict access to the affected components as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for langflow.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback