CVE-2025-3248: Unauthenticated Remote Code Execution in Langflow Code Validation
- Vendor
- Langflow
CVE-2025-3248 is a code-injection vulnerability affecting Langflow versions before 1.3.0 and langflow-base versions before 0.3.0. The code-validation API accepts attacker-controlled Python without authentication and can execute malicious decorators during function definition. Crafted HTTP requests allow remote attackers to execute arbitrary code in the Langflow application's process context. The vulnerability has been actively exploited for credential harvesting and malware deployment 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 resources accessible to the Langflow service account. Attackers can read application data, environment variables, stored provider credentials, and encryption secrets; modify or destroy accessible data; and deploy malware. Access to Langflow's encryption key and key-derivation logic can also permit decryption of stored credentials. Observed exploitation includes AI-provider and cloud-credential harvesting, cryptocurrency-miner deployment, and botnet activity. Further cloud access, lateral movement, or host compromise depends on available credentials, mounted interfaces, network reachability, and service privileges; root access is not inherently guaranteed.
Mitigation
If you can’t patch tonight, do this now.
Remove direct internet exposure and restrict Langflow access through a VPN or private network with enforced authentication. Run the service with least privilege, avoid mounting container-management sockets, restrict access to cloud metadata services, and tightly scope workload identities. Monitor code-validation requests, unexpected application child processes, outbound connections, cloud sign-ins, and anomalous AI-provider usage. These controls reduce exposure and post-exploitation impact 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. For potentially compromised deployments, investigate application and host activity and rotate all credentials the application could access. Rotate exposed provider credentials before rotating the Langflow secret key. Patching alone does not invalidate stolen credentials or remove attacker persistence.
Exploits
27 exploits validated by Mallory's analysis. Hidden: 5 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 28, 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. For potentially compromised deployments, investigate application and host activity and rotate all credentials the application could access.
- 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 80.6% (100th percentile) as of Nov 28, 2026.
Recent activity
297 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.