Apache NiFi: Potential Code Injection with Database Services using H2
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache NiFi | 0.0.2 – 1.21.0 | — | No fix listed | CNA |
| — | org.apache.nifi:nifi-dbcp-base (Maven) | 0.0.2 to before 1.22.0 | 1.22.0 | Patch available | GHSA-xm2m-2q6h-22jw |
| — | org.apache.nifi:nifi-hikari-dbcp-service (Maven) | 0.0.2 to before 1.22.0 | 1.22.0 | Patch available | GHSA-xm2m-2q6h-22jw |
| — | org.apache.nifi:nifi-dbcp-service-nar (Maven) | 0.0.2 to before 1.22.0 | 1.22.0 | Patch available | GHSA-xm2m-2q6h-22jw |
- Apache NiFi VendorApache Affected 0.0.2 – 1.21.0 Fixed in — No fix listed CNA
- org.apache.nifi:nifi-dbcp-base (Maven) Vendor— Affected 0.0.2 to before 1.22.0 Fixed in 1.22.0 Patch available GHSA-xm2m-2q6h-22jw
- org.apache.nifi:nifi-hikari-dbcp-service (Maven) Vendor— Affected 0.0.2 to before 1.22.0 Fixed in 1.22.0 Patch available GHSA-xm2m-2q6h-22jw
- org.apache.nifi:nifi-dbcp-service-nar (Maven) Vendor— Affected 0.0.2 to before 1.22.0 Fixed in 1.22.0 Patch available GHSA-xm2m-2q6h-22jw
Remediation
- Fix · GHSA-xm2m-2q6h-22jw org.apache.nifi:nifi-dbcp-base (Maven) Fixed in 1.22.0 Advisory →
- Fix · GHSA-xm2m-2q6h-22jw org.apache.nifi:nifi-hikari-dbcp-service (Maven) Fixed in 1.22.0 Advisory →
- Fix · GHSA-xm2m-2q6h-22jw org.apache.nifi:nifi-dbcp-service-nar (Maven) Fixed in 1.22.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-34468
- 2026-10-03 Alias added: GHSA-xm2m-2q6h-22jw
References
Advisory 6
- https://nifi.apache.org/security.html#CVE-2023-34468
- https://lists.apache.org/thread/7b82l4f5blmpkfcynf3y6z4x1vqo59h8
- 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/
- https://nvd.nist.gov/vuln/detail/CVE-2023-34468
Other 6
- https://github.com/apache/nifi/pull/7349
- https://github.com/apache/nifi/commit/4faf3ea59895e7e153db3f8f61147ff70a254361
- https://exceptionfactory.com/posts/2023/10/07/firsthand-analysis-of-apache-nifi-vulnerability-cve-2023-34468
- https://github.com/apache/nifi
- https://issues.apache.org/jira/browse/NIFI-11653
- https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation
More Apache Nifi vulnerabilities
- TI-2020-16549 Uncontrolled resource consumption in Eclipse Jetty CVSS 3.1MEDIUM 5.3
- TI-2019-07411 Deserialization of untrusted data in Apache Commons Beanutils CVSS 3.1HIGH 7.3
- TI-2017-11471 Improper input validation in Apache NiFi CVSS 3.0CRITICAL 9.8
- TI-2018-01212 XML external entity injection in Apache NiFi CVSS 3.0CRITICAL 9.8
- TI-2021-03489 Deserialization of untrusted data in jackson-databind CVSS 3.1HIGH 8.1
- TI-2017-03637 Injection in Apache NiFi CVSS 3.0CRITICAL 9.8
Sources
- CVE-2023-34468 · CVE Program
- CVE-2023-34468 · NVD
- FIRST EPSS
- GHSA-xm2m-2q6h-22jw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences