WaratekVRT Sign in

CVE-2023-34468 Apache NiFi

Affected softwareApache NiFi
Severity8.8 High CVSS 3.1 2 scores
Fixed in1.22.0
WeaknessCode injection (CWE-94)
Published12 Jun 2023
Updated17 Jun 2026

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.

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 8 indexed Published artifacts you can open, in GitHub PoC, Metasploit; first seen 2023-11-25.
  • EPSS 62% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99% of all scored CVEs.

5 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC CVE-2023-34468: Remote Code Execution via DB Components in Apache NiFi 8 2023-11-25
GitHub PoC PoC exploit for CVE-2023-34468 — RCE via H2 RUNSCRIPT in Apache NiFi <= 1.21.0 5 2026-05-10
GitHub PoC CVE-2023-34468 - Apache NiFi H2 RCE PoC 1 2026-05-10
GitHub PoC CVE-2023-34468: Apache NiFi 1.21.0 Remote Code Execution (ExecuteProcess Variant) - Security Research & Analysis by Mohammed Moshii 2026-11-07
GitHub PoC Writeup of the Hackthebox Helix machine 2026-09-09
GitHub PoC CVE-2023-34468 Apache NiFi ExecuteSQL H2 RUNSCRIPT RCE PoC 2026-07-12
GitHub PoC Educational proof-of-concept for CVE-2023-34468 affecting Apache NiFi. Demonstrates H2 JDBC URL abuse leading to authenticated RCE in vulnerable NiFi versions. 2026-06-16
Metasploit Apache NiFi H2 Connection String Remote Code Execution (excellent rank)

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: org.apache.nifi:nifi-dbcp-base, org.apache.nifi:nifi-hikari-dbcp-service, org.apache.nifi:nifi-dbcp-service-nar), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

CVSS

8.8 HIGH v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 3.1 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CISA-ADP Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.nifi:nifi-dbcp-base 0.0.2 1.22.0 unbounded
org.apache.nifi:nifi-hikari-dbcp-service 0.0.2 1.22.0 unbounded
org.apache.nifi:nifi-dbcp-service-nar 0.0.2 1.22.0 unbounded

Products and versions

4 products, 4 version entries
SourceVendorProductSchemeAffected versions
nvd apache nifi generic ≥ 0.0.2 and < 1.22.0
osv org.apache.nifi nifi-dbcp-base generic ≥ 0.0.2 and < 1.22.0
osv org.apache.nifi nifi-dbcp-service-nar generic ≥ 0.0.2 and < 1.22.0
osv org.apache.nifi nifi-hikari-dbcp-service generic ≥ 0.0.2 and < 1.22.0

References

URLTags
https://github.com/apache/nifi/pull/7349 WEB
https://github.com/apache/nifi/commit/4faf3ea59895e7e153db3f8f61147ff70a254361 WEB
https://exceptionfactory.com/posts/2023/10/07/firsthand-analysis-of-apache-nifi-vulnerability-cve-2023-34468 WEB
https://github.com/apache/nifi PACKAGE
https://issues.apache.org/jira/browse/NIFI-11653 WEB
https://lists.apache.org/thread/7b82l4f5blmpkfcynf3y6z4x1vqo59h8 WEB
https://nifi.apache.org/security.html#CVE-2023-34468 WEB
https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation WEB
http://packetstormsecurity.com/files/174398/Apache-NiFi-H2-Connection-String-Remote-Code-Execution.html WEB
http://www.openwall.com/lists/oss-security/2023/06/12/3 WEB

Timeline

Published2023-06-12By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.