Skip to content
OpenAdvisories
Medium · 6.5 Public exploit CVE-2023-40037 BIT-nifi-2023-40037EUVD-2023-2181GHSA-23qf-3jf9-h3q9

Apache NiFi: Incomplete Validation of JDBC and JNDI Connection URLs

Published Aug 18, 2023 · Updated Feb 13, 2025 · Assigned by apache

Description

Apache NiFi 1.21.0 through 1.23.0 support JDBC and JNDI JMS access in several Processors and Controller Services with connection URL validation that does not provide sufficient protection against crafted inputs. An authenticated and authorized user can bypass connection URL validation using custom input formatting. The resolution enhances connection URL validation and introduces validation for additional related properties. Upgrading to Apache NiFi 1.23.1 is the recommended mitigation.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache NiFi 1.21.0 – ≤ 1.23.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • mbadanoiu/CVE-2023-40037 ★ 0 · Nov 23, 2023

    CVE-2023-40037: Incomplete Validation of JDBC and JNDI Connection URLs in Apache NiFi

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.nifi:nifi-dbcp-base >= 1.21.0, < 1.23.1 1.23.1 GHSA-23qf-3jf9-h3q9
Maven org.apache.nifi:nifi-dbcp-service-api >= 1.21.0, < 1.23.1 1.23.1 GHSA-23qf-3jf9-h3q9
Maven org.apache.nifi:nifi-dbcp-service-bundle >= 1.21.0, < 1.23.1 1.23.1 GHSA-23qf-3jf9-h3q9
Maven org.apache.nifi:nifi-jms-processors >= 1.21.0, < 1.23.1 1.23.1 GHSA-23qf-3jf9-h3q9

Advisories 1

References