Langflow
Langflow < 1.3.0 Unauthenticated RCE via /api/v1/validate/code
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.3.0
Fixed in 1.3.0
Mitigation
Upgrade langflow to 1.3.0 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 2.2 days after publication; added to CISA KEV 28 days after publication. First PoC: nuclei template: Langflow AI - Unauthenticated Remote Code Execution (nuclei template, 9 Apr 2025).
PoC repositories
Found on GitHub.31 PoCs · 5 pending · 1 informational · 2 suspicious or fake
PoCs 31
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| xuemian168/CVE-2025-3248 | 10 Apr 2025 +2.9 d | backfilled | 12 | PoC |
| PuddinCat/CVE-2025-3248-POC | 10 Apr 2025 +3 d | backfilled | 3 | PoC |
| verylazytech/CVE-2025-3248 | 16 Apr 2025 +9 d | backfilled | 10 | PoC |
| GraySignal/CVE-2025-3248 | 5 May 2025 +28 d | backfilled | 1 | PoC |
| Praison001/CVE-2025-3248 | 5 May 2025 +28 d | backfilled | 1 | PoC |
| Vip3rLi0n/CVE-2025-3248 | 27 May 2025 +50 d | backfilled | 1 | PoC |
| tiemio/RCE-CVE-2025-3248 | 31 May 2025 +54 d | backfilled | 1 | PoC |
| ynsmroztas/CVE-2025-3248-Langflow-RCE | 17 Jun 2025 +71 d | backfilled | 18 | PoC |
| imbas007/CVE-2025-3248 | 18 Jun 2025 +72 d | backfilled | 2 | PoC |
| 0xgh057r3c0n/CVE-2025-3248 | 18 Jun 2025 +72 d | backfilled | 0 | PoC |
| zapstiko/CVE-2025-3248 | 19 Jun 2025 +73 d | backfilled | 2 | PoC |
| dennisec/Mass-CVE-2025-3248 | 23 Jun 2025 +77 d | backfilled | 3 | PoC |
| ill-deed/Langflow-CVE-2025-3248-Multi-target | 25 Jun 2025 +79 d | backfilled | 0 | PoC |
| MatDupas/Custom-Nmap-Scripts | 28 Jun 2025 +82 d | backfilled | 0 | PoC |
| r0otk3r/CVE-2025-3248 | 6 Jul 2025 +89 d | backfilled | 1 | PoC |
| J4c0b-1337x007/ethical-exploit-playground | 10 Aug 2025 +125 d | backfilled | 0 | PoC |
| min8282/CVE-2025-3248 | 3 Sep 2025 +148 d | backfilled | 0 | PoC |
| EQSTLab/CVE-2025-3248 | 15 Sep 2025 +160 d | backfilled | 3 | PoC |
| wand3rlust/CVE-2025-3248 | 17 Sep 2025 +163 d | backfilled | 0 | PoC |
| Kiraly07/Demo_CVE-2025-3248 | 1 Oct 2025 +177 d | backfilled | 2 | PoC |
| bambooqj/cve-2025-3248 | 24 Oct 2025 +200 d | backfilled | 1 | PoC |
| drackyjr/cve-2025-3248-exploit | 20 Nov 2025 +226 d | backfilled | 3 | PoC |
| b0ySie7e/CVE-2025-3248-POC | 10 Dec 2025 +247 d | backfilled | 1 | PoC |
| 12-test-12/CVE-2025-3248 | 16 Mar 2026 +343 d | backfilled | 0 | PoC |
| Hann1bl3L3ct3r/BishengBang | 1 Jun 2026 +1.2 y | backfilled | 0 | PoC |
| paniby/kr-vulhub | 10 Jul 2026 +1.3 y | backfilled | 0 | PoC via PoC Index |
| preemware/langflow-exploit | 9 Aug 2026 +1.3 y | backfilled | 1 | PoC |
| hideki233/CVE-2025-3248-Langflow-RCE | 28 Aug 2026 +1.4 y | backfilled | 4 | PoC |
| LeotheGGman/Langflow-RCE-CVE-2025-3248 | 5 Sep 2026 +1.4 y | backfilled | 0 | PoC |
| zoly-zoly/CVE-2025-3248 | 9 Sep 2026 +1.4 y | backfilled | 2 | PoC |
| cpwjdgh/CVE-2025-3248-CTF-Lab | 18 Oct 2026 +1.5 y | 14 Nov 2026 | 0 | PoC |
Pending 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| dennisec/CVE-2025-3248 | 23 Jun 2025 +77 d | 0 | Pending · repository unavailable (HTTP 404) |
| nebari-playground/langflow-cve-2025-3248 | 20 Mar 2026 +347 d | 0 | Pending · repository unavailable (HTTP 404) |
| Atomics-hub/exposecheck | 14 Jul 2026 +1.3 y | 0 | Pending |
| B1ack4sh/Blackash-CVE-2025-3248 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| issamjr/CVE-2025-3248-Scanner | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| vigilante-1337/CVE-2025-3248 | 13 May 2025 +36 d | 2 | Informational · write-up
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 0-d3y/langflow-rce-exploit | 23 Jun 2025 +76 d | 7 | Fake |
| adolfcg/mixtli25 | 31 Jul 2025 +115 d | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | https://www.horizon3.ai/attack-research/disclosures/unsafe-at-any-speed-abusing-python-exec-for-unauth-rce-in-langflow-ai/ | unknown | 14 Nov 2026 |
| Exploit-DB | Langflow 1.3.0 - Remote Code Execution (RCE) | 18 Apr 2025 | 14 Nov 2026 |
| Exploit-DB | Langflow 1.2.x - Remote Code Execution (RCE) | 16 Jul 2025 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Langflow AI RCE (exploit/multi/http/langflow_unauth_rce_cve_2025_3248) | 11 Apr 2025 | 14 Nov 2026 |
| nuclei template | nuclei template: Langflow AI - Unauthenticated Remote Code Execution | 9 Apr 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 31 PoC reposPOST /api/v1/validate/code
- Key headers
Accept: application/jsonAccept: application/json, text/plain, */*Accept-Language: ko-KR,ko;q=0.9Sec-Ch-Ua: "Not-A.Brand";v="24", "Chromium";v="146"Sec-Ch-Ua-Platform: "macOS"Sec-Fetch-Dest: emptySec-Fetch-Mode: corsSec-Fetch-Site: same-origin- Body markers
"code""code":""""code":"__import__('os').system('echo VULNERABLE')""code":"@exec("raise Exception(__import__('subprocess').check_output(['id']))") def foo(): pass""code":"@exec('raise Exception(__import__("subprocess").check_output(["cat", "/etc/passwd"]))') def foo(): pass"inapplication/json- Ports
- 7860, 8080, 10007
- PoC User-Agent
Mozilla/5.0Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3- Seen in
- 12 repos: 0xgh057r3c0n/CVE-2025-3248, 12-test-12/CVE-2025-3248, EQSTLab/CVE-2025-3248, LeotheGGman/Langflow-RCE-CVE-2025-3248, PuddinCat/CVE-2025-3248-POC, cpwjdgh/CVE-2025-3248-CTF-Lab, drackyjr/cve-2025-3248-exploit, hideki233/CVE-2025-3248-Langflow-RCE, min8282/CVE-2025-3248, paniby/kr-vulhub, r0otk3r/CVE-2025-3248, tiemio/RCE-CVE-2025-3248
- Evidence
- 0xgh057r3c0n/CVE-2025-3248/CVE-2025-3248.py:54 12-test-12/CVE-2025-3248/CVE-2025-3248.py:28 EQSTLab/CVE-2025-3248/CVE-2025-3248.py:84 LeotheGGman/Langflow-RCE-CVE-2025-3248/modules/scanner.py:15 PuddinCat/CVE-2025-3248-POC/patch.py:44 PuddinCat/CVE-2025-3248-POC/poc.py:38
GET /search/all
- Query
email=key=qbase64=size=page=fields=host,ip,port,protocolfields=host,ip,port,country- Seen in
- 1 repo: xuemian168/CVE-2025-3248
- Evidence
- xuemian168/CVE-2025-3248/main.py:190 xuemian168/CVE-2025-3248/src/scanner/fofa.py:27
POST /api/v1/login
- Body markers
username=password=inapplication/x-www-form-urlencoded- Ports
- 7860, 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3- Seen in
- 1 repo: tiemio/RCE-CVE-2025-3248
- Evidence
- tiemio/RCE-CVE-2025-3248/exploit.py:59
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/validate/code(?:[?#].*)?$
(?i)^/search/all\?(?:.*&)?email=.*key=.*qbase64=.*size=.*page=.*fields=host,ip,port,protocol.*fields=host,ip,port,country
(?i)^/api/v1/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [7860,8080,10007] (msg:"GG PoC-Monitor CVE-2025-3248 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/validate/code"; http.header; content:"Accept: application/json"; nocase; http.header; content:"Accept: application/json, text/plain, */*"; nocase; http.header; content:"Accept-Language: ko-KR,ko|3b|q=0.9"; nocase; http.header; content:"Sec-Ch-Ua: |22|Not-A.Brand|22||3b|v=|22|24|22|, |22|Chromium|22||3b|v=|22|146|22|"; nocase; http.header; content:"Sec-Ch-Ua-Platform: |22|macOS|22|"; nocase; http.header; content:"Sec-Fetch-Dest: empty"; nocase; http.header; content:"Sec-Fetch-Mode: cors"; nocase; http.header; content:"Sec-Fetch-Site: same-origin"; nocase; http.request_body; content:"|22|code|22|"; http.request_body; content:"|22|code|22|:|22||22||22|"; http.request_body; content:"|22|code|22|:|22|__import__('os').system('echo VULNERABLE')|22|"; http.request_body; content:"|22|code|22|:|22|@exec(|22|raise Exception(__import__('subprocess').check_output(['id']))|22|)
def foo():
pass|22|"; http.request_body; content:"|22|code|22|:|22|@exec('raise Exception(__import__(|22|subprocess|22|).check_output([|22|cat|22|, |22|/etc/passwd|22|]))')
def foo():
pass|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-3248; classtype:web-application-attack; sid:9270297; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-3248 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/search/all"; http.uri; content:"email="; http.uri; content:"key="; http.uri; content:"qbase64="; http.uri; content:"size="; http.uri; content:"page="; http.uri; content:"fields=host,ip,port,protocol"; http.uri; content:"fields=host,ip,port,country"; reference:url,poc.griffinguard.io/cve/CVE-2025-3248; classtype:web-application-attack; sid:9483824; rev:1;)
alert http any any -> $HOME_NET [7860,8080] (msg:"GG PoC-Monitor CVE-2025-3248 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/login"; http.request_body; content:"username="; http.request_body; content:"password="; reference:url,poc.griffinguard.io/cve/CVE-2025-3248; classtype:web-application-attack; sid:9161666; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: langflow-ai langflow exploit attempt (CVE-2025-3248)
id: gg-pocmon-cve-2025-3248-9270297
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-3248. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-3248
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/validate/code'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.3248
title: langflow-ai langflow exploit attempt (CVE-2025-3248)
id: gg-pocmon-cve-2025-3248-9483824
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-3248. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-3248
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/search/all'
cs-uri-query|contains|all:
- 'email='
- 'key='
- 'qbase64='
- 'size='
- 'page='
- 'fields=host,ip,port,protocol'
- 'fields=host,ip,port,country'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.3248
title: langflow-ai langflow exploit attempt (CVE-2025-3248)
id: gg-pocmon-cve-2025-3248-9161666
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-3248. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-3248
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.3248