RCE in Apache Nifi
CVE-2022-33140
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.038 (89.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 90th percentile — 89.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.037 · newest: 0.038 · change: +0.001
Affected products
- Apache Nifi
- Apache Nifi Registry
- Apache Software Foundation Nifi — versions up to 1.16.2, 1.10.0
- Apache Software Foundation Nifi Registry — versions up to 1.16.2, 0.6.0
- Apple macOS
- Linux Kernel
Weakness classification (CWE)
Public proof-of-concept exploits
References
- lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhr (Mailing List, Vendor Advisory)
- nifi.apache.org/security.html (Issue Tracking, Vendor Advisory)
Frequently asked questions
- What is CVE-2022-33140?
- CVE-2022-33140 is a high-severity vulnerability in Apache Nifi, classified under OS Command Injection. CVSS score: 8.8/10. Published 2022-06-15.
- How severe is CVE-2022-33140?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2022-33140 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.