CVE-2022-33140

High

Description

The optional ShellUserGroupProvider in Apache NiFi 1.10.0 to 1.16.2 and Apache NiFi Registry 0.6.0 to 1.16.2 does not neutralize arguments for group resolution commands, allowing injection of operating system commands on Linux and macOS platforms. The ShellUserGroupProvider is not included in the default configuration. Command injection requires ShellUserGroupProvider to be one of the enabled User Group Providers in the Authorizers configuration. Command injection also requires an authenticated user with elevated privileges. Apache NiFi requires an authenticated user with authorization to modify access policies in order to execute the command. Apache NiFi Registry requires an authenticated user with authorization to read user groups in order to execute the command. The resolution removes command formatting based on user-provided arguments.

SeverityHigh
CVSS8.8
Exploit probability—
ProductApache Nifi
PublishedJun 15, 2022
First seenJun 15, 2022

How to fix

Update
  • org.apache.nifi.registry:nifi-registry-core1.16.3 or later
  • org.apache.nifi:nifi1.16.3 or later

Affected products

ProductAffected versionsFixed in
apache nifi1.10.0 ≤ v ≤ 1.16.2—
apache nifi_registry0.6.0 ≤ v ≤ 1.16.2—
org.apache.nifi.registry:nifi-registry-coreMaven0.6.0 ≤ v < 1.16.31.16.3
org.apache.nifi:nifiMaven1.10.0 ≤ v < 1.16.31.16.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.