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.

Severity (CVSS NVD)8.8High
Exploit odds (30 days)3.5%top 10.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Mavenorg.apache.nifi.registry:nifi-registry-core1.16.3GHSA-77hf-23pq-2g7c
Mavenorg.apache.nifi:nifi1.16.3GHSA-77hf-23pq-2g7c

Affected products (as reported)

VendorProductVersions
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