diff --git a/.appsec-tests/vpatch-CVE-2025-3248/CVE-2025-3248.yaml b/.appsec-tests/vpatch-CVE-2025-3248/CVE-2025-3248.yaml new file mode 100644 index 00000000000..4bfe666c69e --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2025-3248/CVE-2025-3248.yaml @@ -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 diff --git a/.appsec-tests/vpatch-CVE-2025-3248/config.yaml b/.appsec-tests/vpatch-CVE-2025-3248/config.yaml new file mode 100644 index 00000000000..12b9df6150b --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2025-3248/config.yaml @@ -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 diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2025-3248.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2025-3248.yaml new file mode 100644 index 00000000000..c446d279591 --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2025-3248.yaml @@ -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 diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index be69426f031..2ed6912d718 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -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