CVE-2022-33140
| Affected software | 2 products, listed below |
|---|---|
| Severity | 8.8 High CVSS 3.1 2 scores |
| Fixed in | 1.16.3 |
| Weakness | OS command injection (CWE-78) |
| Published | 15 Jun 2022 |
| Updated | 17 Jun 2026 |
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.
CWE-74
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 4 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment no assessment published
- Indexed PoC none indexed
- EPSS 3.5% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full Process
- Action available security rule
- Review automated Inferred
- Record active
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR command-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-78: OS Command Injection. |
How to mitigate CVE-2022-33140
Upgrade the affected software to 1.16.3 or later. Until you can, Waratek RASP blocks exploitation with its process rule. It runs inside the Java application, with no code changes.
CVSS
8.8 HIGH
v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
2 metrics
CVSS
8.8 HIGH v3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
2 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| 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 | Primary | published |
| CVSS 2.0 | 6.0 | none | AV:N/AC:M/Au:S/C:P/I:P/A:P |
NVD | Primary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
org.apache.nifi.registry:nifi-registry-core |
0.6.0 | 1.16.3 |
unbounded |
org.apache.nifi:nifi |
1.10.0 | 1.16.3 |
unbounded |
Products and versions
4 products, 4 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | apache | nifi | generic | ≥ 1.10.0 and ≤ 1.16.2 |
| nvd | apache | nifi registry | generic | ≥ 0.6.0 and ≤ 1.16.2 |
| osv | org.apache.nifi | nifi | generic | ≥ 1.10.0 and < 1.16.3 |
| osv | org.apache.nifi.registry | nifi-registry-core | generic | ≥ 0.6.0 and < 1.16.3 |
References
| URL | Tags |
|---|---|
| https://github.com/apache/nifi | PACKAGE |
| https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhr | WEB |
| https://nifi.apache.org/security.html#CVE-2022-33140 | WEB |
Timeline
Timeline
| Published | 2022-06-15 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |