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

CVE-2023-34468 affects 48 listed versions of Apache NiFi in the Dawnsentry catalogue.

8.8CVSS high
Attack tool publicexploitation
62%EPSS (next 30 days)
12 June 2023published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apache NiFi

48 of 78 listed versions are affected. Fixed in 1.22.0. The newest release, 2.13.0, is not affected.

1.21.0 1.20.0 1.19.1 1.19.0 1.18.0 1.17.0 1.16.3 1.16.2 1.16.1 1.16.0 1.15.3 1.15.2 1.15.1 1.15.0 1.14.0 1.13.2 1.13.1 1.13.0 1.12.1 1.12.0 1.11.4 1.11.3 1.11.2 1.11.1 1.11.0 1.10.0 1.9.2 1.9.1 1.9.0 1.8.0 1.7.1 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.7.4 0.7.3 0.7.2 0.7.1 0.7.0 0.6.1

What it is

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:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Apache Software Foundation on 12 June 2023. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2023-34468 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.