POC — Remote and unauthenticated attacker can send crafted HTTP requests to execute arbitrary code — CVE-2025–3248
The /api/v1/validate/code endpoint in Langflow fails to authenticate users and uses Python's exec() without safeguards, allowing unauthenticated remote attackers to execute arbitrary code. Exploitation is straightforward: a crafted POST request with malicious code in the body leads to server-side code execution.
Published on medium.verylazytech.com
✨ Free link
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The endpoint lacks authentication and uses Python's exec() function without safeguards, allowing arbitrary code execution.
Impact
An unauthenticated remote attacker could execute arbitrary code on the server, gaining control over the system.
What the attacker needed
Target runs Langflow before 1.3.0; Network access to the endpoint
The fix
The vulnerability was fixed in version 1.3.0.
How it was found
- Find targets using a search engine like Fofa with the dork "Langflow".
- Clone the exploit repository from GitHub.
- Run the exploit script with the target address and command.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a flaw in a tool called Langflow that lets attackers run their own commands on a server without needing to log in. The server takes code from a web request and runs it without checking who sent it, so an attacker can take control of the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.