CVE-2025-3248 Details
Description
Langflow versions prior to 1.3.0 are susceptible to code injection in the /api/v1/validate/code endpoint. A remote and unauthenticated attacker can send crafted HTTP requests to execute arbitrary code.
A code injection vulnerability has been identified in Langflow versions prior to 1.3.0, specifically in the '/api/v1/validate/code' endpoint. This vulnerability allows remote, unauthenticated attackers to execute arbitrary code on the server by sending crafted HTTP requests. The issue arises because the endpoint processes user input using Python's 'exec' function without proper sanitization, enabling attackers to exploit Python's features, such as decorators, for malicious purposes.
Users are advised to upgrade to Langflow version 1.3.0 or later, as this version patches the vulnerability by adding authentication to the '/api/v1/validate/code' endpoint. For instances that cannot be immediately upgraded, consider restricting network access to the application.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-3248 | CISA-ADP | US Government Resource |
| https://github.com/langflow-ai/langflow/pull/6911 | [email protected] | Patch |
| https://github.com/langflow-ai/langflow/releases/tag/1.3.0 | [email protected] | Release Notes |
| https://www.horizon3.ai/attack-research/disclosures/unsafe-at-any-speed-abusing-python-exec-for-unauth-rce-in-langflow-ai/ | [email protected] | ExploitThird Party Advisory |
| https://www.vulncheck.com/advisories/langflow-unauthenticated-rce | [email protected] | Third Party Advisory |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| Langflow Missing Authentication Vulnerability | May 5, 2025 | May 26, 2025 | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-306 | Missing Authentication for Critical Function | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-306 | Missing Authentication for Critical Function | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langflow langflow | < 1.3.0 |
CPE
Remediation
| |
Change History
13 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 6, 2025 | Modified Analysis | [email protected] |
| Nov 4, 2025 | CVE Modified | [email protected] |
| Oct 31, 2025 | Modified Analysis | [email protected] |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| May 7, 2025 | Initial Analysis | [email protected] |
| May 6, 2025 | CVE CISA KEV Update | Cybersecurity and Infrastructure Security Agency (CISA) U.S. Civilian Government |
| Apr 9, 2025 | CVE Modified | [email protected] |
| Apr 7, 2025 | New CVE Received | [email protected] |