Skip to main content
← All vulnerabilities
CVE-2022-33140GHSA-77HF-23PQ-2G7CBIT-NIFI-2022-33140

Improper Neutralization of Command Elements in Shell User Group Provider

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.16.3
1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Apache Software Foundation Apache NiFi

    From up to 1.16.2 · through 1.16.2; From 1.10.0

  • Apache Software Foundation Apache NiFi Registry

    From up to 1.16.2 · through 1.16.2; From 0.6.0

  • org.apache.nifi.registry:nifi-registry-coreMaven

    From 0.6.0 · fixed in 1.16.3

  • org.apache.nifi:nifiMaven

    From 1.10.0 · fixed in 1.16.3

References 3

lists.apache.org

nifi.apache.org

GitHub · shoucheng3/apache__nifi_CVE-2022-33140_1-16-22