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.
References:GSA_kwCzR0hTQS03N2hmLTIzcHEtMmc3Y84AArpn
Code injection in Apache NiFi and NiFi Registry
Affected Packages | Affected Versions | Fixed Versions | |
---|---|---|---|
maven:org.apache.nifi:nifi | >= 1.10.0, < 1.16.3 | 1.16.3 | |
Affected Version RangesAll affected versions1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.16.0, 1.16.1, 1.16.2 All unaffected versions0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.9.0, 1.9.1, 1.9.2, 1.16.3, 1.17.0, 1.18.0, 1.19.0, 1.19.1, 1.20.0, 1.21.0, 1.22.0, 1.23.0, 1.23.1, 1.23.2, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.0, 1.28.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0 |
|||
maven:org.apache.nifi.registry:nifi-registry-core | >= 0.6.0, < 1.16.3 | 1.16.3 | |
Affected Version RangesAll affected versions0.7.0, 0.8.0, 1.14.0, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.16.0, 1.16.1, 1.16.2 All unaffected versions0.3.0, 0.4.0, 0.5.0, 1.16.3, 1.17.0, 1.18.0, 1.19.0, 1.19.1, 1.20.0, 1.21.0, 1.22.0, 1.23.0, 1.23.1, 1.23.2, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.0, 1.28.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0 |