CVE-2025-3248: Langflow base Remote Code Execution Vulnerability
CRITICALCVE-2025-3248 is a CRITICAL remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Langflow base libraries in the PyPI ecosystem. The issue involves langflow unauth rce. Remediation is available by upgrading affected packages to version 0.3.0, 1.3.0.
CVE-2025-3248 at a Glance
How to Fix CVE-2025-3248
To remediate this vulnerability, upgrade all affected Langflow base dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install langflow-base>=0.3.0
pip install langflow>=1.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show langflow-base
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-3248, inspect your installed packages using pip:
pip show langflow-base
Analyze the terminal output to locate any version of Langflow base in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.0), your application is affected.
Note: The pip show langflow-base command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Langflow base, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-3248 Affected Langflow base Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
langflow-base
|
PyPI |
< 0.3.0
|
0.3.0
|
|
langflow
|
PyPI |
< 1.3.0
|
1.3.0
|
References
Frequently Asked Questions
What is CVE-2025-3248?
Which Langflow base versions are affected?
What version fixes CVE-2025-3248?
Is langflow-base affected?
Is langflow affected?
What CWE is associated with CVE-2025-3248?
How can I check PyPI dependencies for CVE-2025-3248?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rvqx-wpfh-mfx7",
"modified" : "2025-11-05T20:12:45Z",
"published" : "2025-06-17T20:14:26Z",
"aliases" : [ "CVE-2025-3248" ],
"summary" : "Langflow Unauth RCE",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "langflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "langflow-base"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/langflow-ai/langflow/security/advisories/GHSA-rvqx-wpfh-mfx7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3248"
}, {
"type" : "WEB",
"url" : "https://github.com/langflow-ai/langflow/pull/6911"
}, {
"type" : "WEB",
"url" : "https://github.com/langflow-ai/langflow/commit/faac4db133de32fcb6d483fa9ff52f40ce42bdc0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/langflow-ai/langflow"
}, {
"type" : "WEB",
"url" : "https://github.com/langflow-ai/langflow/releases/tag/1.3.0"
}, {
"type" : "WEB",
"url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-3248"
}, {
"type" : "WEB",
"url" : "https://www.horizon3.ai/attack-research/disclosures/unsafe-at-any-speed-abusing-python-exec-for-unauth-rce-in-langflow-ai"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/langflow-unauthenticated-rce"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-17T20:14:26Z",
"nvd_published_at" : null
}
}