Apache NiFi vulnerable to Code Injection

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.




Vulnerability ID: GHSA-xm2m-2q6h-22jw
Aliases: CVE-2023-34468
Published: 2023-06-12 18:30:18
CWE: CWE-94
Severity rating: HIGH
CVSS: type: CVSS_V3
score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected packages:
package: ecosystem: Maven
name: org.apache.nifi:nifi-dbcp-base
package: ecosystem: Maven
name: org.apache.nifi:nifi-hikari-dbcp-service