cve.bz

CVE-2023-34468 apache nifi: Code Injection

8.8 highExploitEPSS 62%Fix available

High (8.8) in apache nifi. EPSS 62% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.nifi:nifi-dbcp-base 1.22.0.

On this page
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.

Severity

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
EPSS
62% (unchanged from 62% a week ago; 62% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-34468 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-34468?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-34468?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-34468 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache NiFifrom 0.0.2 through 1.21.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xm2m-2q6h-22jwMavenorg.apache.nifi:nifi-dbcp-base>=0.0.2 <1.22.01.22.0
GHSA-xm2m-2q6h-22jwMavenorg.apache.nifi:nifi-hikari-dbcp-service>=0.0.2 <1.22.01.22.0
GHSA-xm2m-2q6h-22jwMavenorg.apache.nifi:nifi-dbcp-service-nar>=0.0.2 <1.22.01.22.0

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • sbouabid-sec/CVE-2023-34468-POC Harbor Check: matches CVE 5 stars, Python, created
    PoC exploit for CVE-2023-34468 — RCE via H2 RUNSCRIPT in Apache NiFi <= 1.21.0
  • Jeanpt/CVE-2023-34468 Harbor Check: matches CVE 1 star, Python, created
    CVE-2023-34468 - Apache NiFi H2 RCE PoC
  • ozcanpng/CVE-2023-34468 Harbor Check: matches CVE 0 stars, Python, created
    CVE-2023-34468 Apache NiFi ExecuteSQL H2 RUNSCRIPT RCE PoC
  • spikeyjr/CVE-2023-34468-PoC Harbor Check: matches CVE 0 stars, Python, created
    Educational proof-of-concept for CVE-2023-34468 affecting Apache NiFi. Demonstrates H2 JDBC URL abuse leading to authenticated RCE in vulne…
  • mohammed-moshii/CVE-2023-34468-Apache-NiFi-RCE 0 stars, Python, created
    CVE-2023-34468: Apache NiFi 1.21.0 Remote Code Execution (ExecuteProcess Variant) - Security Research & Analysis by Mohammed Moshii
1 more

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON