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

Published Jun 12, 2023
·
Updated

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

4 affected componentsFixes available
maven/org.apache.nifi:nifi-dbcp-service-nar>=0.0.2<1.22.0
1.22.0
maven/org.apache.nifi:nifi-hikari-dbcp-service>=0.0.2<1.22.0
1.22.0
maven/org.apache.nifi:nifi-dbcp-base>=0.0.2<1.22.0
1.22.0
Apache nifi>=0.0.2<1.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.nifi:nifi-dbcp-service-nar to a version that resolves this vulnerability.

    Fixed in 1.22.0
  2. Upgrade

    Upgrade maven/org.apache.nifi:nifi-hikari-dbcp-service to a version that resolves this vulnerability.

    Fixed in 1.22.0
  3. Upgrade

    Upgrade maven/org.apache.nifi:nifi-dbcp-base to a version that resolves this vulnerability.

    Fixed in 1.22.0
  4. Upgrade

    Upgrade apache/nifi to a version that resolves this vulnerability.

    Fixed in 1.22.0

Event History

Jun 12, 2023
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-34468?

The severity of CVE-2023-34468 is high.

2

What is the vulnerability in Apache NiFi 0.0.2 through 1.21.0?

The vulnerability in Apache NiFi 0.0.2 through 1.21.0 is the ability for an authenticated and authorized user to configure a Database URL with the H2 driver that enables custom code execution.

3

How can an attacker exploit CVE-2023-34468?

An attacker can exploit CVE-2023-34468 by configuring a malicious Database URL with the H2 driver and executing custom code.

4

How can I fix CVE-2023-34468?

To fix CVE-2023-34468, update Apache NiFi to version 1.22.0 or later.

5

What is the Common Weakness Enumeration (CWE) ID for CVE-2023-34468?

The Common Weakness Enumeration (CWE) ID for CVE-2023-34468 is CWE-94.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203