Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache NiFi | 0.0.2 – ≤ 1.21.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Apache NiFi H2 Connection String Remote Code Execution
exploit/linux/http/apache_nifi_h2_rce
GitHub 8 repositories
-
mbadanoiu/CVE-2023-34468 ★ 8 · Nov 25, 2023
CVE-2023-34468: Remote Code Execution via DB Components in Apache NiFi
-
sbouabid-sec/CVE-2023-34468-POC ★ 5 · May 10, 2026
PoC exploit for CVE-2023-34468 — RCE via H2 RUNSCRIPT in Apache NiFi <= 1.21.0
-
Jeanpt/CVE-2023-34468 ★ 1 · May 10, 2026
CVE-2023-34468 - Apache NiFi H2 RCE PoC
-
mohammed-moshii/CVE-2023-34468-Apache-NiFi-RCE ★ 0 · Nov 7, 2026
CVE-2023-34468: Apache NiFi 1.21.0 Remote Code Execution (ExecuteProcess Variant) - Security Research & Analysis by Mohammed Moshii
-
luiskrnr/HTB_Helix_CVE-2023-34468 ★ 0 · Sep 9, 2026
Writeup of the Hackthebox Helix machine
-
ozcanpng/CVE-2023-34468 ★ 0 · Jul 12, 2026
CVE-2023-34468 Apache NiFi ExecuteSQL H2 RUNSCRIPT RCE PoC
-
spikeyjr/CVE-2023-34468-PoC ★ 0 · Jun 16, 2026
Educational proof-of-concept for CVE-2023-34468 affecting Apache NiFi. Demonstrates H2 JDBC URL abuse leading to authenticated RCE in vulnerable NiFi versions.
-
shoucheng3/asf__nifi_CVE-2023-34468_1-21-00 ★ 0 · Aug 18, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.nifi:nifi-dbcp-base | >= 0.0.2, < 1.22.0 | 1.22.0 | GHSA-xm2m-2q6h-22jw |
| Maven | org.apache.nifi:nifi-dbcp-service-nar | >= 0.0.2, < 1.22.0 | 1.22.0 | GHSA-xm2m-2q6h-22jw |
| Maven | org.apache.nifi:nifi-hikari-dbcp-service | >= 0.0.2, < 1.22.0 | 1.22.0 | GHSA-xm2m-2q6h-22jw |
Advisories 1
- WID-SEC-2023-1423 Apache Nifi: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 10, 2026
References
- https://nifi.apache.org/security.html#CVE-2023-34468 release-notes
- https://lists.apache.org/thread/7b82l4f5blmpkfcynf3y6z4x1vqo59h8 vendor-advisory
- http://www.openwall.com/lists/oss-security/2023/06/12/3
- http://packetstormsecurity.com/files/174398/Apache-NiFi-H2-Connection-String-Remote-Code-Execution.html
- https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation/