CVE-2022-33140

published 15 Jun 2022 · updated 3 Aug 2024

Improper Neutralization of Command Elements in Shell User Group Provider

5.0MediumEPSS 4%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 4%. Fixed in 0.6.0* and 1.10.0*.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Apache Software Foundation>=0.6.0 <0.6.0*, >=up to 1.16.2 <=1.16.2, >=1.10.0 <1.10.0*0.6.0*, 1.10.0*

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-33140 severity on Zeptric[![CVE-2022-33140](https://zeptric.io/badge/cve/CVE-2022-33140.svg)](https://zeptric.io/cve/CVE-2022-33140)