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

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.08%, higher than 82% of CVEs (2026-12-01)
- Published: 2023-08-18T21:54:52.454Z
- Modified: 2026-09-08T08:48:16.758Z
- Also known as: GHSA-23qf-3jf9-h3q9, BIT-NIFI-2023-40037
- Weaknesses: CWE-184, CWE-697
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache NiFi: from 1.21.0 up to 1.23.0
- org.apache.nifi:nifi-dbcp-base (Maven): from 1.21.0 before 1.23.1
- org.apache.nifi:nifi-jms-processors (Maven): from 1.21.0 before 1.23.1
- org.apache.nifi:nifi-dbcp-service-api (Maven): from 1.21.0 before 1.23.1
- org.apache.nifi:nifi-dbcp-service-bundle (Maven): from 1.21.0 before 1.23.1
- apache nifi: from 1.21.0 before 1.23.1
- nifi (Bitnami): from 1.21.0 before 1.23.1

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://nifi.apache.org/security.html#CVE-2023-40037> (advisory, release-notes, vendor-advisory, web)
- <https://lists.apache.org/thread/bqbjlrs2p5ghh8sbk5nsxb8xpf9l687q> (discussion, mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2023/08/18/2> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40037> (advisory, web)
- <https://github.com/apache/nifi/pull/7586> (web)
- <https://github.com/apache/nifi/commit/064550aacc189f39d7ddd2c0446068adf250f1bf> (web)
- <https://github.com/apache/nifi> (package)
- <https://issues.apache.org/jira/browse/NIFI-11920> (web)

## Sources

- CVE List: [CVE-2023-40037](https://www.cve.org/CVERecord?id=CVE-2023-40037), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-23qf-3jf9-h3q9](https://github.com/advisories/GHSA-23qf-3jf9-h3q9), CC-BY-4.0, modified 2025-09-15
- NVD: [CVE-2023-40037](https://nvd.nist.gov/vuln/detail/CVE-2023-40037), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NIFI-2023-40037](https://osv.dev/vulnerability/BIT-NIFI-2023-40037), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-40037 · Whole record: https://cve.day/CVE-2023-40037.json · Rebuilt by cve.day 2026-11-25T22:58:27.253Z
