Vulnerabilities in pkg:maven/org.apache.nifi/nifi-dbcp-service-api

PACKAGE
Advisory Identifier: GHSA-23qf-3jf9-h3q9
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.nifi/nifi-dbcp-service-api

1 Known Advisory Record(s)

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

CVE Identifier CVE-2023-40037
GHSA Identifier GHSA-23qf-3jf9-h3q9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-184: Incomplete List of Disallowed Inputs
Affected Product Nifi dbcp base
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

org.apache.nifi:nifi-dbcp-base fixed: 1.23.1
<dependency>
    <groupId>org.apache.nifi</groupId>
    <artifactId>nifi-dbcp-base</artifactId>
    <version>1.23.1</version>
</dependency>
org.apache.nifi:nifi-jms-processors fixed: 1.23.1
<dependency>
    <groupId>org.apache.nifi</groupId>
    <artifactId>nifi-jms-processors</artifactId>
    <version>1.23.1</version>
</dependency>
org.apache.nifi:nifi-dbcp-service-api fixed: 1.23.1
<dependency>
    <groupId>org.apache.nifi</groupId>
    <artifactId>nifi-dbcp-service-api</artifactId>
    <version>1.23.1</version>
</dependency>
org.apache.nifi:nifi-dbcp-service-bundle fixed: 1.23.1
<dependency>
    <groupId>org.apache.nifi</groupId>
    <artifactId>nifi-dbcp-service-bundle</artifactId>
    <version>1.23.1</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2023-40037 Affected Nifi dbcp base Versions

4 component(s)
Fixed Versions:
1.23.1
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?
CVE-2023-40037 is a security vulnerability in Nifi dbcp base involving Apache NiFi Insufficient Property Validation vulnerability under CWE-184: Incomplete List of Disallowed Inputs.
Which Nifi dbcp base versions are affected?
Affected versions include releases prior to 1.23.1 across affected packages: org.apache.nifi:nifi-dbcp-base, org.apache.nifi:nifi-jms-processors, org.apache.nifi:nifi-dbcp-service-api, org.apache.nifi:nifi-dbcp-service-bundle.
What version fixes CVE-2023-40037?
Upgrading to 1.23.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nifi-dbcp-base affected?
Yes, org.apache.nifi:nifi-dbcp-base is affected in releases prior to 1.23.1. Upgrade your dependency to 1.23.1 or later.
Is nifi-jms-processors affected?
Yes, org.apache.nifi:nifi-jms-processors is affected in releases prior to 1.23.1. Upgrade your dependency to 1.23.1 or later.
What is the CVSS score of CVE-2023-40037?
CVE-2023-40037 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-40037?
CVE-2023-40037 is classified under CWE-184: Incomplete List of Disallowed Inputs (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.).
How can I check Maven dependencies for CVE-2023-40037?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.nifi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}