Vulnerabilities in pkg:maven/org.apache.nifi/nifi-dbcp-service-api
PACKAGECVE-2023-40037 is a MODERATE (CVSS 6.5) apache nifi insufficient property validation vulnerability (CWE-184: Incomplete List of Disallowed Inputs) affecting Nifi dbcp base libraries in the Maven ecosystem. The issue involves apache nifi insufficient property validation vulnerability. Remediation is available by upgrading affected packages to version 1.23.1.
pkg:maven/org.apache.nifi/nifi-dbcp-service-api
Vulnerability advisories affecting package pkg:maven/org.apache.nifi/nifi-dbcp-service-api. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-23qf-3jf9-h3q9 | CVE-2023-40037 | MODERATE | Apache NiFi Insufficient Property Validation vulnerability |
CVE-2023-40037 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2023-40037
To remediate this vulnerability, upgrade all affected Nifi dbcp base dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-dbcp-base</artifactId>
<version>1.23.1</version>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-jms-processors</artifactId>
<version>1.23.1</version>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-dbcp-service-api</artifactId>
<version>1.23.1</version>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-dbcp-service-bundle</artifactId>
<version>1.23.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.nifi
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-40037, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.nifi
Analyze the terminal output to locate any version of Nifi dbcp base in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.23.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.nifi command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-184: Incomplete List of Disallowed Inputs, where the product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete. In Nifi dbcp base, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-40037 Affected Nifi dbcp base Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.nifi:nifi-dbcp-base
|
Maven |
≥ 1.21.0
< 1.23.1
|
1.23.1
|
|
org.apache.nifi:nifi-jms-processors
|
Maven |
≥ 1.21.0
< 1.23.1
|
1.23.1
|
|
org.apache.nifi:nifi-dbcp-service-api
|
Maven |
≥ 1.21.0
< 1.23.1
|
1.23.1
|
|
org.apache.nifi:nifi-dbcp-service-bundle
|
Maven |
≥ 1.21.0
< 1.23.1
|
1.23.1
|
References
Frequently Asked Questions
What is CVE-2023-40037?
Which Nifi dbcp base versions are affected?
What version fixes CVE-2023-40037?
Is nifi-dbcp-base affected?
Is nifi-jms-processors affected?
What is the CVSS score of CVE-2023-40037?
What CWE is associated with CVE-2023-40037?
How can I check Maven dependencies for CVE-2023-40037?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-23qf-3jf9-h3q9",
"modified" : "2025-02-13T19:10:21Z",
"published" : "2023-08-19T00:30:29Z",
"aliases" : [ "CVE-2023-40037" ],
"summary" : "Apache NiFi Insufficient Property Validation vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.nifi:nifi-dbcp-base"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.21.0"
}, {
"fixed" : "1.23.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.nifi:nifi-jms-processors"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.21.0"
}, {
"fixed" : "1.23.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.nifi:nifi-dbcp-service-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.21.0"
}, {
"fixed" : "1.23.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.nifi:nifi-dbcp-service-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.21.0"
}, {
"fixed" : "1.23.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-40037"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/nifi/pull/7586"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/nifi/commit/064550aacc189f39d7ddd2c0446068adf250f1bf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/nifi"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/NIFI-11920"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/bqbjlrs2p5ghh8sbk5nsxb8xpf9l687q"
}, {
"type" : "WEB",
"url" : "https://nifi.apache.org/security.html#CVE-2023-40037"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2023/08/18/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-184", "CWE-697" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-21T20:16:05Z",
"nvd_published_at" : "2023-08-18T22:15:10Z"
}
}