CVE-2023-34468: Apache NiFi: Potential Code Injection with Database Services using H2
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.nifi:nifi-dbcp-service-narto a version that resolves this vulnerability.Fixed in 1.22.0 - Upgrade
Upgrade
maven/org.apache.nifi:nifi-hikari-dbcp-serviceto a version that resolves this vulnerability.Fixed in 1.22.0 - Upgrade
Upgrade
maven/org.apache.nifi:nifi-dbcp-baseto a version that resolves this vulnerability.Fixed in 1.22.0 - Upgrade
Upgrade
apache/nifito a version that resolves this vulnerability.Fixed in 1.22.0
Event History
Frequently Asked Questions
What is the severity of CVE-2023-34468?
The severity of CVE-2023-34468 is high.
What is the vulnerability in Apache NiFi 0.0.2 through 1.21.0?
The vulnerability in Apache NiFi 0.0.2 through 1.21.0 is the ability for an authenticated and authorized user to configure a Database URL with the H2 driver that enables custom code execution.
How can an attacker exploit CVE-2023-34468?
An attacker can exploit CVE-2023-34468 by configuring a malicious Database URL with the H2 driver and executing custom code.
How can I fix CVE-2023-34468?
To fix CVE-2023-34468, update Apache NiFi to version 1.22.0 or later.
What is the Common Weakness Enumeration (CWE) ID for CVE-2023-34468?
The Common Weakness Enumeration (CWE) ID for CVE-2023-34468 is CWE-94.