# CVE-2023-34468: Apache NiFi: Potential Code Injection with Database Services using H2

- Priority: **Prioritise**
- Reason: Weaponized exploit (Metasploit, 12-06-2023)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-06-12 · Modified: 2025-02-13
- Aliases: GHSA-xm2m-2q6h-22jw, BIT-nifi-2023-34468
- Record: https://cvemate.com/vulnerability/CVE-2023-34468 · JSON: https://cvemate.com/vulnerability/CVE-2023-34468/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 61.869%, percentile 99.192%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (metasploit)

## Affected

- apache software foundation apache nifi: ≥ 0.0.2, ≤ 1.21.0
- apache nifi: ≥ 0.0.2, \< 1.22.0
- org.apache.nifi nifi-dbcp-base (Maven): ≥ 0.0.2, \< 1.22.0
- org.apache.nifi nifi-dbcp-service-nar (Maven): ≥ 0.0.2, \< 1.22.0
- org.apache.nifi nifi-hikari-dbcp-service (Maven): ≥ 0.0.2, \< 1.22.0

## References

- <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>
- <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>

---

Data as of 2026-12-05T08:00:29.450Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
