CVE-2023-36542
Apache NiFi Code Injection vulnerability
Description
Apache NiFi 0.0.2 through 1.22.0 include Processors and Controller Services that support HTTP URL references for retrieving drivers, which allows an authenticated and authorized user to configure a location that enables custom code execution. The resolution introduces a new Required Permission for referencing remote resources, restricting configuration of these components to privileged users. The permission prevents unprivileged users from configuring Processors and Controller Services annotated with the new Reference Remote Resources restriction. Upgrading to Apache NiFi 1.23.0 is the recommended mitigation.
Affected Maven artifacts (8)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.nifi » nifi-cdc-mysql-bundle | >= 0.0.2, < 1.23.0 | 1.23.0 |
| org.apache.nifi » nifi-dbcp-service | >= 0.0.2, < 1.23.0 | 1.23.0 |
| org.apache.nifi » nifi-hadoop-dbcp-service | >= 0.0.2, < 1.23.0 | 1.23.0 |
| org.apache.nifi » nifi-hbase_2-client-service | >= 0.0.2, < 1.23.0 | 1.23.0 |
| org.apache.nifi » nifi-hikari-dbcp-service | >= 0.0.2, < 1.23.0 | 1.23.0 |
| org.apache.nifi » nifi-jms-processors | >= 0.0.2, < 1.23.0 | 1.23.0 |
| org.apache.nifi » nifi-record-serialization-services | >= 0.0.2, < 1.23.0 | 1.23.0 |
| org.apache.nifi » nifi-standard-processors | >= 0.0.2, < 1.23.0 | 1.23.0 |
Blast radius
48% of the dependent artifacts (18) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,286 |
| 2 hops | 3,020 |
| 3 hops | 1 |
Most used dependents
- org.apache.nifi » nifi-standard-nar7 usages
- org.apache.nifi » nifi-dbcp-service-nar4 usages
- org.apache.nifi » nifi-record-serialization-services-nar4 usages
- org.apache.nifi » nifi-hbase_2-client-service-nar2 usages
- org.apache.nifi » nifi-standard-parameter-providers2 usages
- pl.touk » nifi-ignite-services2 usages
- org.apache.nifi » nifi-assembly1 usages
- org.apache.nifi » nifi-jms-processors-nar1 usages
- org.apache.nifi.minifi » minifi-standard-nar1 usages
- org.apache.nifi » nifi-hadoop-dbcp-service-nar1 usages
- org.apache.nifi » nifi-kafka-connector-tests1 usages
- org.apache.nifi » nifi-stateless-system-test-suite1 usages
- org.apache.nifi » nifi-stateless-processor-tests1 usages
- be.vlaanderen.omgeving.nifi » nifi-vragenlijst-processors1 usages
- be.vlaanderen.omgeving.nifi » nifi-putdatabaserecord-processors1 usages
Computed from the dependency graph of build 20261202.0245 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-36542 | nvd.nist.gov |
| Package | apache/nifi | github.com |
| Web | apache/nifi commit 5325787 | github.com |
| Web | jira/browse/NIFI-11744 | issues.apache.org |
| Web | thread/swnly3dzhhq9zo3rofc8djq77stkhbof | lists.apache.org |
| Web | security.html | nifi.apache.org |
| Web | fulldisclosure/2023/Jul/43 | seclists.org |
| Web | lists/oss-security/2023/07/29/1 | openwall.com |
