Vulnerability · Published Jun 12, 2023 · Assigned by apache

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

High 8.8

In plain English

A high-severity code injection in Apache NiFi from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 61.9% (higher than 99.2% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)61.9%top 0.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling2Metasploit, Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.nifi:nifi-dbcp-base1.22.0GHSA-xm2m-2q6h-22jw
Mavenorg.apache.nifi:nifi-dbcp-service-nar1.22.0GHSA-xm2m-2q6h-22jw
Mavenorg.apache.nifi:nifi-hikari-dbcp-service1.22.0GHSA-xm2m-2q6h-22jw

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache NiFi 0.0.2 – through 1.21.0

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References