High

Apache NiFi vulnerable to Code Injection

  • Disclosed: 12.06.2023
  • Updated: 11.10.2026 12:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.nifi:nifi-dbcp-base >= 0.0.2, < 1.22.0 1.22.0
Java / Kotlin (Maven) org.apache.nifi:nifi-dbcp-service-nar >= 0.0.2, < 1.22.0 1.22.0
Java / Kotlin (Maven) org.apache.nifi:nifi-hikari-dbcp-service >= 0.0.2, < 1.22.0 1.22.0

References

CVSS score 8.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-94
Platform
Java / Kotlin (Maven)
Package
org.apache.nifi:nifi-dbcp-base, org.apache.nifi:nifi-dbcp-service-nar, org.apache.nifi:nifi-hikari-dbcp-service
Disclosed
12.06.2023
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-xm2m-2q6h-22jw - CC BY 4.0

Vulnerability history: org.apache.nifi:nifi-hikari-dbcp-service

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
06.2023 07.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2

Disclosures per year

  1. 2023: 2
  2. 2024: 0
  3. 2025: 0
  4. 2026: 0
  1. High · 8.8 CVE-2023-36542 >= 0.0.2, < 1.23.0 1.23.0
  2. Apache NiFi vulnerable to Code Injection this entry
    High · 8.8 CVE-2023-34468 >= 0.0.2, < 1.22.0 1.22.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.