CVE-2025-3248: Langflow base Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-rvqx-wpfh-mfx7
CWE-94
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-3248
GHSA Identifier GHSA-rvqx-wpfh-mfx7
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Langflow base
Package Ecosystem PyPI
Published Date
Last Updated

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.

langflow-base fixed: 0.3.0
pip install langflow-base>=0.3.0
langflow fixed: 1.3.0
pip install langflow>=1.3.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-3248 Affected Langflow base Versions

2 component(s)
Fixed Versions:
0.3.01.3.0
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?
CVE-2025-3248 is a security vulnerability in Langflow base involving Langflow Unauth RCE under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Langflow base versions are affected?
Affected versions include releases prior to 0.3.0, 1.3.0 across affected packages: langflow-base, langflow.
What version fixes CVE-2025-3248?
Upgrading to 0.3.0, 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is langflow-base affected?
Yes, langflow-base is affected in releases prior to 0.3.0. Upgrade your dependency to 0.3.0 or later.
Is langflow affected?
Yes, langflow is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
What CWE is associated with CVE-2025-3248?
CVE-2025-3248 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check PyPI dependencies for CVE-2025-3248?
Run the dependency tree command: 'pip show langflow-base'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}