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
33 changes: 33 additions & 0 deletions .appsec-tests/vpatch-CVE-2023-38646/CVE-2023-38646.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## autogenerated on 2026-04-08 13:22:20
id: CVE-2023-38646
info:
name: CVE-2023-38646
author: crowdsec
severity: info
description: CVE-2023-38646 testing
tags: appsec-testing
http:
- raw:
- |
POST /api/setup/validate HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json

{
"token":"testtoken",
"details":{
"details":{
"subprotocol":"h2",
"classname":"org.h2.Driver",
"advanced-options":true,
"subname":"mem:;TRACE_LEVEL_SYSTEM_OUT=3;INIT=RUNSCRIPT FROM './plugins/vertica.metabase-driver.jar'//\\;"
},
"name":"testdb",
"engine":"postgres"
}
}
cookie-reuse: true
matchers:
- type: status
status:
- 403
5 changes: 5 additions & 0 deletions .appsec-tests/vpatch-CVE-2023-38646/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## autogenerated on 2026-04-08 13:22:20
appsec-rules:
- ./appsec-rules/crowdsecurity/base-config.yaml
- ./appsec-rules/crowdsecurity/vpatch-CVE-2023-38646.yaml
nuclei_template: CVE-2023-38646.yaml
31 changes: 31 additions & 0 deletions appsec-rules/crowdsecurity/vpatch-CVE-2023-38646.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## autogenerated on 2026-04-08 13:22:20
name: crowdsecurity/vpatch-CVE-2023-38646
description: 'Detects Metabase pre-auth RCE via malicious H2 subname in setup validation.'
rules:
- and:
- zones:
- URI
transform:
- lowercase
match:
type: equals
value: /api/setup/validate
- zones:
- RAW_BODY
transform:
- lowercase
match:
type: contains
value: 'trace_level_system_out=3;init=runscript'

labels:
type: exploit
service: http
confidence: 3
spoofable: 0
behavior: 'http:exploit'
label: 'Metabase - RCE'
classification:
- cve.CVE-2023-38646
- attack.T1190
- cwe.CWE-94
1 change: 1 addition & 0 deletions collections/crowdsecurity/appsec-virtual-patching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ appsec-rules:
- crowdsecurity/vpatch-CVE-2023-40044
- crowdsecurity/vpatch-CVE-2017-9841
- crowdsecurity/vpatch-CVE-2020-11738
- crowdsecurity/vpatch-CVE-2023-38646
- crowdsecurity/vpatch-CVE-2022-27926
- crowdsecurity/vpatch-CVE-2022-35914
- crowdsecurity/vpatch-CVE-2022-46169
Expand Down
Loading