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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-08-18 · Modified: 2025-02-13
- Aliases: GHSA-23qf-3jf9-h3q9, BIT-nifi-2023-40037
- Record: https://cvemate.com/vulnerability/CVE-2023-40037 · JSON: https://cvemate.com/vulnerability/CVE-2023-40037/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS: 2.085%, percentile 82.207%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache nifi: ≥ 1.21.0, ≤ 1.23.0
- apache nifi: ≥ 1.21.0, \< 1.23.1
- org.apache.nifi nifi-dbcp-base (Maven): ≥ 1.21.0, \< 1.23.1
- org.apache.nifi nifi-dbcp-service-api (Maven): ≥ 1.21.0, \< 1.23.1
- org.apache.nifi nifi-dbcp-service-bundle (Maven): ≥ 1.21.0, \< 1.23.1
- org.apache.nifi nifi-jms-processors (Maven): ≥ 1.21.0, \< 1.23.1

## References

- <https://nifi.apache.org/security.html#CVE-2023-40037>
- <https://lists.apache.org/thread/bqbjlrs2p5ghh8sbk5nsxb8xpf9l687q>
- <http://www.openwall.com/lists/oss-security/2023/08/18/2>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40037>
- <https://github.com/apache/nifi/pull/7586>
- <https://github.com/apache/nifi/commit/064550aacc189f39d7ddd2c0446068adf250f1bf>
- <https://github.com/apache/nifi>
- <https://issues.apache.org/jira/browse/NIFI-11920>

---

Data as of 2026-12-05T07:51:21.225Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
