CVE-2023-34468: Apache NiFi: Potential Code Injection with Database Services using H2
Vulnerability summary
CVE-2023-34468 is a high (CVSS 8.8) Improper Control of Generation of Code vulnerability in apache software foundation apache nifi. EPSS estimates a 61.87% chance of exploitation in the next 30 days, higher than 99.1% of scored vulnerabilities. 1 public exploit is recorded.
Weaponized exploit (Metasploit, 12-06-2023)
Source freshness unavailable
How is this decided?Timeline
- 12-06-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
61.87%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 61.87% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundApache NiFi H2 Connection String Remote Code Execution
exploit/linux/http/apache_nifi_h2_rce
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Org.apache.nifi3 products
- nifi-dbcp-base≥ 0.0.2, < 1.22.0
- nifi-dbcp-service-nar≥ 0.0.2, < 1.22.0
- nifi-hikari-dbcp-service≥ 0.0.2, < 1.22.0
Apache1 product
- nifi≥ 0.0.2, < 1.22.0
Apache software foundation1 product
- apache nifi≥ 0.0.2, ≤ 1.21.0
3 vendors · 5 products
References
12 links- packetstormsecurity.com/files/174398/Apache-NiFi-H2-Connection-String-Remote-Code-Execution.htmlWEBThird Party AdvisoryVDB Entry
- github.com/apache/nifiPACKAGE