# CVE-2023-36542: Apache NiFi Code Injection vulnerability

Source: https://junglewise.ai/threats/cve-2023-36542-apache-nifi-code-injection-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-07-29  
License: CC BY 4.0 with a link back

CVE-2023-36542 · Severity: low · CVSS 3.1 · Published 2023-07-29

Apache NiFi Code Injection vulnerability

Technologies: [org.apache.nifi:nifi-jms-processors (Maven)](https://junglewise.ai/threats/technologies/org-apache-nifi-nifi-jms-processors), [org.apache.nifi:nifi-standard-processors (Maven)](https://junglewise.ai/threats/technologies/org-apache-nifi-nifi-standard-processors). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2023-36542 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-36542 being exploited in the wild.

**How severe is CVE-2023-36542?** Low severity, with a CVSS score of 3.1, published 29 July 2023.

**Which products and versions are affected?** org.apache.nifi:nifi-cdc-mysql-bundle (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0; org.apache.nifi:nifi-dbcp-service (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0; org.apache.nifi:nifi-hadoop-dbcp-service (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0; org.apache.nifi:nifi-hbase_2-client-service (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0; and 4 more.

**Is there a fix for CVE-2023-36542?** Yes. org.apache.nifi:nifi-cdc-mysql-bundle (Maven): upgrade to 1.23.0 or later; org.apache.nifi:nifi-dbcp-service (Maven): upgrade to 1.23.0 or later; org.apache.nifi:nifi-hadoop-dbcp-service (Maven): upgrade to 1.23.0 or later; org.apache.nifi:nifi-hbase_2-client-service (Maven): upgrade to 1.23.0 or later; org.apache.nifi:nifi-hikari-dbcp-service (Maven): upgrade to 1.23.0 or later; org.apache.nifi:nifi-jms-processors (Maven): upgrade to 1.23.0 or later; org.apache.nifi:nifi-record-serialization-services (Maven): upgrade to 1.23.0 or later; org.apache.nifi:nifi-standard-processors (Maven): upgrade to 1.23.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-36542?** Check whether you run org.apache.nifi:nifi-cdc-mysql-bundle (Maven), org.apache.nifi:nifi-dbcp-service (Maven), org.apache.nifi:nifi-hadoop-dbcp-service (Maven) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.nifi:nifi-cdc-mysql-bundle (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-cdc-mysql-bundle to 1.23.0 in your pom.xml or build.gradle
  ```

- org.apache.nifi:nifi-dbcp-service (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-dbcp-service to 1.23.0 in your pom.xml or build.gradle
  ```

- org.apache.nifi:nifi-hadoop-dbcp-service (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-hadoop-dbcp-service to 1.23.0 in your pom.xml or build.gradle
  ```

- org.apache.nifi:nifi-hbase_2-client-service (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-hbase_2-client-service to 1.23.0 in your pom.xml or build.gradle
  ```

- org.apache.nifi:nifi-hikari-dbcp-service (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-hikari-dbcp-service to 1.23.0 in your pom.xml or build.gradle
  ```

- org.apache.nifi:nifi-jms-processors (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-jms-processors to 1.23.0 in your pom.xml or build.gradle
  ```

- org.apache.nifi:nifi-record-serialization-services (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-record-serialization-services to 1.23.0 in your pom.xml or build.gradle
  ```

- org.apache.nifi:nifi-standard-processors (Maven): upgrade to 1.23.0 or later

  ```sh
  # set org.apache.nifi:nifi-standard-processors to 1.23.0 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.nifi:nifi-cdc-mysql-bundle (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0
- org.apache.nifi:nifi-dbcp-service (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0
- org.apache.nifi:nifi-hadoop-dbcp-service (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0
- org.apache.nifi:nifi-hbase_2-client-service (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0
- org.apache.nifi:nifi-hikari-dbcp-service (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0
- org.apache.nifi:nifi-jms-processors (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0
- org.apache.nifi:nifi-record-serialization-services (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0
- org.apache.nifi:nifi-standard-processors (Maven) ECOSYSTEM:introduced=0.0.2,fixed=1.23.0

## Identifiers

- CVE-2023-36542
- GHSA-r969-8v3h-23v9

## Related threats

- [Apache NiFi Insufficient Property Validation vulnerability](https://junglewise.ai/threats/cve-2023-40037-apache-nifi-insufficient-property-validation-vulnerability)
- [Apache NiFi vulnerable to Code Injection](https://junglewise.ai/threats/cve-2023-34468-apache-nifi-vulnerable-to-code-injection)
- [Apache NiFi vulnerable to Deserialization of Untrusted Data](https://junglewise.ai/threats/cve-2023-34212-apache-nifi-vulnerable-to-deserialization-of-untrusted-data)
- [Improper Restriction of XML External Entity Reference in Apache NiFi](https://junglewise.ai/threats/cve-2018-1309-improper-restriction-of-xml-external-entity-reference-in-apache)
- [Unencrypted passwords](https://junglewise.ai/threats/unencrypted-passwords-74cfc4bf)
