The DBCPConnectionPool and HikariCPConnectionPool Controller Services in Apache NiFi 0.0.2 through 1.21.0 allow an authenticated and authorized user to configure a Database URL with the H2 driver that enables custom code execution. This exploit will result in several shells (5-7). Successfully tested against Apache nifi 1.17.0 through 1.21.0.
Exploit database
Vulnerability
CVE-2023-34468
Apache NiFi: Potential Code Injection with Database Services using H2
Vulnerability details
- Score
- 8.8
- Severity
- high
CVSS 3.1 · CISA-ADP
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDescription
The DBCPConnectionPool and HikariCPConnectionPool Controller Services in Apache NiFi 0.0.2 through 1.21.0 allow an authenticated and authorized user to configure a Database URL with the H2 driver that enables custom code execution. The resolution validates the Database URL and rejects H2 JDBC locations. You are recommended to upgrade to version 1.22.0 or later which fixes this issue.
CVE ProgramExploit source choices
3 sourcesApache NiFi H2 Connection String Remote Code Execution
2023-06-12apache_nifi_h2_rce.rb
sbouabid-sec/cve-2023-34468-poc
PoC exploit for CVE-2023-34468 — RCE via H2 RUNSCRIPT in Apache NiFi <= 1.21.0
2026-05-102 files · 5 stars
jeanpt/cve-2023-34468
CVE-2023-34468 - Apache NiFi H2 RCE PoC
2026-05-104 files · 1 stars