# CVE-2022-33140: Improper Neutralization of Command Elements in Shell User Group Provider

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-06-15 · Modified: 2024-08-03
- Aliases: GHSA-77hf-23pq-2g7c, BIT-nifi-2022-33140
- Record: https://cvemate.com/vulnerability/CVE-2022-33140 · JSON: https://cvemate.com/vulnerability/CVE-2022-33140/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 3.519%, percentile 89.584%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache nifi: ≥ up to 1.16.2, ≤ 1.16.2 \| ≥ 1.10.0, \< 1.10.0\*
- apache software foundation apache nifi registry: ≥ up to 1.16.2, ≤ 1.16.2 \| ≥ 0.6.0, \< 0.6.0\*
- apache nifi: ≥ 1.10.0, ≤ 1.16.2
- apache nifi\_registry: ≥ 0.6.0, ≤ 1.16.2
- org.apache.nifi nifi (Maven): ≥ 1.10.0, \< 1.16.3
- org.apache.nifi.registry nifi-registry-core (Maven): ≥ 0.6.0, \< 1.16.3

## References

- <https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhr>
- <https://nifi.apache.org/security.html#CVE-2022-33140>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-33140>
- <https://github.com/apache/nifi>

---

Data as of 2026-12-05T05:06:03.727Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
