CVE-2022-33140

Improper Neutralization of Command Elements in Shell User Group Provider

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.

Remediation

Workaround:

  • Disabling the ShellUserGroupProvider mitigates the vulnerability.

Category

8.8
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 1.71% Top 20%
Vendor Advisory apache.org Vendor Advisory apache.org
Affected: Apache Software Foundation Apache NiFi
Affected: Apache Software Foundation Apache NiFi Registry
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-33140?
CVE-2022-33140 has been scored as a high severity vulnerability.
How to fix CVE-2022-33140?
As a workaround for remediating CVE-2022-33140: Disabling the ShellUserGroupProvider mitigates the vulnerability.
Is CVE-2022-33140 being actively exploited in the wild?
It is possible that CVE-2022-33140 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~2% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-33140?
CVE-2022-33140 affects Apache Software Foundation Apache NiFi, Apache Software Foundation Apache NiFi Registry.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.