From e3ea55ccb4cbf06c056bab8d666e5f8f76317103 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Thu, 17 Sep 2026 11:11:03 +0200 Subject: [PATCH 1/4] Add vpatch-CVE-2026-0768 rule --- .../crowdsecurity/vpatch-CVE-2026-0768.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 appsec-rules/crowdsecurity/vpatch-CVE-2026-0768.yaml diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2026-0768.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2026-0768.yaml new file mode 100644 index 00000000000..87f5b57183b --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2026-0768.yaml @@ -0,0 +1,35 @@ +## autogenerated on 2026-09-17 09:11:00 +name: crowdsecurity/vpatch-CVE-2026-0768 +description: 'Detects unauthenticated Python code execution through Langflow validate/code.' +rules: + - and: + - zones: + - URI + transform: + - urldecode + - lowercase + match: + type: contains + value: '/api/v1/validate/code' + - zones: + - BODY_ARGS + variables: + - json.code + transform: + - urldecode + - lowercase + match: + type: contains + value: 'exec(' + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'Langflow - RCE' + classification: + - cve.CVE-2026-0768 + - attack.T1059 + - cwe.CWE-94 From 2f4366a197f4717c6a82a943e580ff728086256f Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Thu, 17 Sep 2026 11:11:05 +0200 Subject: [PATCH 2/4] Add vpatch-CVE-2026-0768 test config --- .appsec-tests/vpatch-CVE-2026-0768/config.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .appsec-tests/vpatch-CVE-2026-0768/config.yaml diff --git a/.appsec-tests/vpatch-CVE-2026-0768/config.yaml b/.appsec-tests/vpatch-CVE-2026-0768/config.yaml new file mode 100644 index 00000000000..ee4450ed04e --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2026-0768/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2026-09-17 09:11:00 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2026-0768.yaml +nuclei_template: CVE-2026-0768.yaml From 93dc4e89b0f8b7062e6019bf7778d2a4178891da Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Thu, 17 Sep 2026 11:11:07 +0200 Subject: [PATCH 3/4] Add CVE-2026-0768.yaml test --- .../vpatch-CVE-2026-0768/CVE-2026-0768.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .appsec-tests/vpatch-CVE-2026-0768/CVE-2026-0768.yaml diff --git a/.appsec-tests/vpatch-CVE-2026-0768/CVE-2026-0768.yaml b/.appsec-tests/vpatch-CVE-2026-0768/CVE-2026-0768.yaml new file mode 100644 index 00000000000..4a68fa5bfac --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2026-0768/CVE-2026-0768.yaml @@ -0,0 +1,22 @@ +## autogenerated on 2026-09-17 09:11:00 +id: CVE-2026-0768 +info: + name: CVE-2026-0768 + author: crowdsec + severity: info + description: CVE-2026-0768 testing + tags: appsec-testing +http: + - raw: + - | + POST /api/v1/validate/code HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/json + + {"code": "def exploit(cd=exec('raise Exception(__import__(\"subprocess\").check_output(\"id\", shell=True))')): pass"} + + cookie-reuse: true + matchers: + - type: status + status: + - 403 From 48e614a3e518d9760eee4954bb59a9d219e6ca56 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Thu, 17 Sep 2026 11:11:09 +0200 Subject: [PATCH 4/4] Add vpatch-CVE-2026-0768 rule to vpatch collection --- collections/crowdsecurity/appsec-virtual-patching.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index 94d0ed3d1ea..95e2635f537 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -11,6 +11,7 @@ appsec-rules: - crowdsecurity/vpatch-CVE-2022-35914 - crowdsecurity/vpatch-CVE-2022-46169 - crowdsecurity/vpatch-CVE-2024-3408 +- crowdsecurity/vpatch-CVE-2026-0768 - crowdsecurity/vpatch-CVE-2023-20198 - crowdsecurity/vpatch-CVE-2023-22515 - crowdsecurity/vpatch-CVE-2024-6671