Exploit database

Vulnerability

CVE-2023-34468

Apache NiFi: Potential Code Injection with Database Services using H2

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

3 sources
Apache NiFi H2 Connection String Remote Code Execution
MSF-linux--http--apache_nifi_h2_rceMetasploitUnix / remotePreferred

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. This exploit will result in several shells (5-7). Successfully tested against Apache nifi 1.17.0 through 1.21.0.

2023-06-12apache_nifi_h2_rce.rb
sbouabid-sec/cve-2023-34468-poc
GH-d4a8c18f1e14d9570b9e3f578ef9b3b8GitHubUnofficial GitHub source

PoC exploit for CVE-2023-34468 — RCE via H2 RUNSCRIPT in Apache NiFi <= 1.21.0

2026-05-102 files · 5 stars
jeanpt/cve-2023-34468
GH-6b0c5e5af04159b6adea227bb71f4a7dGitHubUnofficial GitHub source

CVE-2023-34468 - Apache NiFi H2 RCE PoC

2026-05-104 files · 1 stars