Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .appsec-tests/vpatch-CVE-2025-3248/CVE-2025-3248.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## autogenerated on 2025-05-09 10:25:34
id: CVE-2025-3248
info:
name: CVE-2025-3248
author: crowdsec
severity: info
description: CVE-2025-3248 testing
tags: appsec-testing
http:
- raw:
- |
POST /api/v1/validate/code HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json

{"code": "@exec('raise Exception(__import__(\"subprocess\").check_output([\"cat\", \"/etc/passwd\"]))')\ndef foo():\n pass"}
cookie-reuse: true
matchers:
- type: status
status:
- 403
5 changes: 5 additions & 0 deletions .appsec-tests/vpatch-CVE-2025-3248/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## autogenerated on 2025-05-09 10:25:34
appsec-rules:
- ./appsec-rules/crowdsecurity/base-config.yaml
- ./appsec-rules/crowdsecurity/vpatch-CVE-2025-3248.yaml
nuclei_template: CVE-2025-3248.yaml
34 changes: 34 additions & 0 deletions appsec-rules/crowdsecurity/vpatch-CVE-2025-3248.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## autogenerated on 2025-05-09 10:25:34
name: crowdsecurity/vpatch-CVE-2025-3248
description: 'Detects unauthenticated remote code execution in Langflow via /api/v1/validate/code endpoint.'
rules:
- and:
- zones:
- URI
transform:
- lowercase
match:
type: equals
value: /api/v1/validate/code
- zones:
- BODY_ARGS
variables:
- json.code
transform:
- lowercase
- urldecode
match:
type: contains
value: "@exec("

labels:
type: exploit
service: http
confidence: 3
spoofable: 0
behavior: 'http:exploit'
label: 'Langflow - RCE'
classification:
- cve.CVE-2025-3248
- attack.T1190
- cwe.CWE-306
1 change: 1 addition & 0 deletions collections/crowdsecurity/appsec-virtual-patching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ appsec-rules:
- crowdsecurity/vpatch-CVE-2024-27292
- crowdsecurity/vpatch-CVE-2025-24893
- crowdsecurity/vpatch-CVE-2021-43798
- crowdsecurity/vpatch-CVE-2025-3248
author: crowdsecurity
contexts:
- crowdsecurity/appsec_base
Expand Down