CVE-2025-3248: Unauthenticated Remote Code Execution in Langflow Code Validation
- Vendor
- Langflow
CVE-2025-3248 is an unauthenticated Python code-injection vulnerability affecting Langflow versions before 1.3.0 and langflow-base versions before 0.3.0. The code-validation endpoint parses attacker-supplied Python with ast.parse(), compiles function definitions, and executes them using exec() without requiring authentication or adequately isolating execution. Malicious expressions in function decorators or default arguments execute during validation, without the function being called. Crafted HTTP requests therefore allow remote attackers to execute arbitrary code with the Langflow process's privileges. The vulnerability is actively exploited and is listed in CISA's Known Exploited Vulnerabilities catalog.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of the Langflow application and resources accessible to its service account. Attackers can read application data, environment variables, stored credentials, and configuration secrets; modify or delete accessible data; and execute additional payloads. Exposed cloud credentials, AI-provider keys, database credentials, or container-management interfaces can enable further compromise, subject to their permissions and network reachability. Observed exploitation includes credential harvesting, Flodrix botnet deployment, cryptocurrency-mining attempts, and ransomware operations.
Mitigation
If you can’t patch tonight, do this now.
Remove direct internet exposure and restrict access to trusted networks, a VPN, or an authenticated access gateway. Enforce authentication before requests reach the code-validation endpoint. Run Langflow with least privilege, avoid mounting container-management sockets, and restrict access to cloud metadata services where possible. Monitor suspicious code-validation requests, unexpected processes, persistence mechanisms, outbound connections, and unusual cloud or AI-service usage. These controls reduce exposure but do not replace upgrading.
Remediation
Patch, then assume compromise.
Upgrade the langflow package to version 1.3.0 or later and langflow-base to version 0.3.0 or later, as applicable. Langflow 1.3.0 adds an active-user authentication dependency to the vulnerable endpoint. Investigate previously exposed instances for compromise, since upgrading does not remove existing attacker access. Rotate potentially exposed provider and cloud credentials before rotating the Langflow secret key, and review application and cloud activity for unauthorized use.
Exploits
27 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 5 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-3248 exploited in the wild?
- Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 5, 2025.
- Is there a public exploit for CVE-2025-3248?
- Yes. Mallory tracks 27 public exploits or proofs of concept for CVE-2025-3248, the earliest disclosed Apr 9, 2025.
- Is there a patch for CVE-2025-3248?
- Upgrade the langflow package to version 1.3.0 or later and langflow-base to version 0.3.0 or later, as applicable. Langflow 1.3.0 adds an active-user authentication dependency to the vulnerable endpoint.
- What products are affected by CVE-2025-3248?
- Langflow.
- How severe is CVE-2025-3248?
- CVE-2025-3248 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 17, 2026.
Recent activity
289 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.