Vulnerability · Published Jun 15, 2022 · Assigned by apache
CVE-2022-33140Improper Neutralization of Command Elements in Shell User Group Provider
High 8.8
In plain English
A high-severity OS command injection in Apache NiFi from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.5% (higher than 89% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.nifi.registry:nifi-registry-core | 1.16.3 | GHSA-77hf-23pq-2g7c |
| Maven | org.apache.nifi:nifi | 1.16.3 | GHSA-77hf-23pq-2g7c |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache NiFi | up to 1.16.2 – through 1.16.21.10.0 – before 1.10.0* |
| Apache Software Foundation | Apache NiFi Registry | up to 1.16.2 – through 1.16.20.6.0 – before 0.6.0* |
Weakness: CWE-78
References
- https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhr x_refsource_MISC
- https://nifi.apache.org/security.html#CVE-2022-33140 x_refsource_MISC