What’s Vulnerable › Vulnerabilities
CVE-2023-34468: Apache NiFi: Potential Code Injection with Database Services using H2
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 61.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-06-12 · updated 2026-06-17
- Weakness: CWE-94
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
- Apache Software Foundation Apache NiFi: from 0.0.2 before 1.22.0 — fixed in 1.22.0
How to fix
Upgrade to a fixed version: Apache Software Foundation Apache NiFi 1.22.0. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/174398/Apache-NiFi-H2-Connection-String-Remote-Code-Execution.html
- http://www.openwall.com/lists/oss-security/2023/06/12/3
- https://lists.apache.org/thread/7b82l4f5blmpkfcynf3y6z4x1vqo59h8
- https://nifi.apache.org/security.html#CVE-2023-34468
- https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation/
- http://packetstormsecurity.com/files/174398/Apache-NiFi-H2-Connection-String-Remote-Code-Execution.html
- http://www.openwall.com/lists/oss-security/2023/06/12/3
- https://lists.apache.org/thread/7b82l4f5blmpkfcynf3y6z4x1vqo59h8
- https://nifi.apache.org/security.html#CVE-2023-34468
- https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation/
Get alerted when CVE-2023-34468 or the next vulnerability affects your stack