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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.nifi:nifi-dbcp-base | 1.22.0 | GHSA-xm2m-2q6h-22jw |
| Maven | org.apache.nifi:nifi-dbcp-service-nar | 1.22.0 | GHSA-xm2m-2q6h-22jw |
| Maven | org.apache.nifi:nifi-hikari-dbcp-service | 1.22.0 | GHSA-xm2m-2q6h-22jw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://nifi.apache.org/security.html#CVE-2023-34468 release-notes
- https://lists.apache.org/thread/7b82l4f5blmpkfcynf3y6z4x1vqo59h8 vendor-advisory
- http://www.openwall.com/lists/oss-security/2023/06/12/3
- http://packetstormsecurity.com/files/174398/Apache-NiFi-H2-Connection-String-Remote-Code-Execution.html
- https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation/