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

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.52%, higher than 89% of CVEs (2026-12-01)
- Published: 2022-06-15T14:25:15.000Z
- Modified: 2026-09-08T08:48:16.808Z
- Also known as: GHSA-77hf-23pq-2g7c, BIT-NIFI-2022-33140
- Weaknesses: CWE-74, CWE-78
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache NiFi: from up to 1.16.2 up to 1.16.2; from 1.10.0 before 1.10.0*
- Apache Software Foundation Apache NiFi Registry: from up to 1.16.2 up to 1.16.2; from 0.6.0 before 0.6.0*
- org.apache.nifi.registry:nifi-registry-core (Maven): from 0.6.0 before 1.16.3
- org.apache.nifi:nifi (Maven): from 1.10.0 before 1.16.3
- apache nifi: from 1.10.0 up to 1.16.2
- apache nifi_registry: from 0.6.0 up to 1.16.2
- nifi (Bitnami): from 1.10.0 up to 1.16.2

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.0 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhr> (advisory, mailing-list, vendor-advisory, web)
- <https://nifi.apache.org/security.html#CVE-2022-33140> (advisory, issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-33140> (advisory, web)
- <https://github.com/apache/nifi> (package)

## Sources

- CVE List: [CVE-2022-33140](https://www.cve.org/CVERecord?id=CVE-2022-33140), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-77hf-23pq-2g7c](https://github.com/advisories/GHSA-77hf-23pq-2g7c), CC-BY-4.0, modified 2025-09-15
- NVD: [CVE-2022-33140](https://nvd.nist.gov/vuln/detail/CVE-2022-33140), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NIFI-2022-33140](https://osv.dev/vulnerability/BIT-NIFI-2022-33140), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-33140 · Whole record: https://cve.day/CVE-2022-33140.json · Rebuilt by cve.day 2026-11-25T22:58:12.353Z
