Patchfirst
CVE-2023-34468 Public exploit High · 8.8 EPSS 61.9%

Apache NiFi: Potential Code Injection with Database Services using H2

Apache Software Foundation · Apache NiFi

Summary

Apache NiFi's DBCPConnectionPool and HikariCPConnectionPool Controller Services contain a code injection flaw in how they handle Database URLs using the H2 driver. An attacker who is an authenticated and authorized user can configure a malicious H2 Database URL that enables execution of custom code.

Official description · CVE.org

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.

Breakdown
31.0 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (Metasploit) was available the same day.

  1. DisclosedPublic exploit codeMetasploitday 0

See the family tree

4 related vulnerabilities in the same code over 10 weeks. The latest fix listed for nifi-hikari-dbcp-service is 1.23.0.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2023-34212NiFi: Potential Deserialization of Untrusted Data with JNDI in…12 Jun 2023
  2. same family
    This CVECVE-2023-34468NiFi: Potential Code Injection with Database Services using H212 Jun 2023
  3. relatedHigh

    Why these are linked:

    • Fixed one release later1.22.0 → 1.23.0 (org.apache.nifi:nifi-hikari-dbcp-service)
    • Same code patched: HikariCPConnectionPool.java (machine-matched)commit 4faf3eacommit 5325787
    CVE-2023-36542NiFi: Potential Code Injection with Properties Referencing…29 Jul 2023
  4. relatedHigh

    Why these are linked:

    • Fixed one release later1.23.0 → 1.23.1 (org.apache.nifi:nifi-jms-processors)
    • Same code patched: HikariCPConnectionPool.java (machine-matched)commit 5325787commit 064550a
    • Similar weakness in the same product (machine-matched)same product + description similarity
    CVE-2023-40037NiFi: Incomplete Validation of JDBC and JNDI Connection URLs18 Aug 2023

Fixes in nifi-hikari-dbcp-serviceMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.22.0CVE-2023-3446812 Jun 2023
  2. 1.23.0CVE-2023-3654229 Jul 2023Latest listed

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

3 packages in 1 ecosystem. No single main package: each of these ships the affected code.

  • Mavenorg.apache.nifi:nifi-dbcp-base
    Affected: 0.0.2 up to 1.22.0Upgrade to 1.22.0 or later
  • Mavenorg.apache.nifi:nifi-hikari-dbcp-service
    Affected: 0.0.2 up to 1.22.0Upgrade to 1.23.0 or later
  • Mavenorg.apache.nifi:nifi-dbcp-service-nar
    Affected: 0.0.2 up to 1.22.0Upgrade to 1.22.0 or later

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close