CVE-2022-33140
HIGH 8.8CVSS 3.1Code injection in Apache NiFi and NiFi Registry
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.
- Published
- 15 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-74CWE-78
- Also known as
- BIT-nifi-2022-33140GHSA-77hf-23pq-2g7c
- Sources
- NVDJSONOSV GHSA-77hf-23pq-2g7cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | nificpe:2.3:a:apache:nifi:*:*:*:*:*:*:*:* |
>= 1.10.0, <= 1.16.2 | |
| NVD | apache | nifi_registrycpe:2.3:a:apache:nifi_registry:*:*:*:*:*:*:*:* |
>= 0.6.0, <= 1.16.2 | |
| OSV | Maven | org.apache.nifi.registry:nifi-registry-core | >= 0.6.0, < 1.16.3 | 1.16.3 |
| OSV | Maven | org.apache.nifi:nifi | >= 1.10.0, < 1.16.3 | 1.16.3 |
References
- https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhr · Mailing List, Vendor Advisory, WEB
- https://nifi.apache.org/security.html#CVE-2022-33140 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-33140 · ADVISORY
- https://github.com/apache/nifi · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 15 Jun 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 16 Jun 2022)