CVE-2022-33140
mediumpriority · attend · 46EPSS 0.037 · 90 %ileexploit · PoCEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (9)
Products and version ranges known to be affected.
- Maven org.apache.nifi.registry:nifi-registry-core0.6.0 → 1.16.3osvUSpkg:maven/org.apache.nifi.registry/nifi-registry-core
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-77hf-23pq-2g7cCode injection in Apache NiFi and NiFi Registry2022-06-16ghsa · osvUS
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.
- BIT-nifi-2022-33140Improper Neutralization of Command Elements in Shell User Group Provider2025-09-12vendor · osvUS
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.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-33140/cnnvd
- https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhrcnnvd
- https://nifi.apache.org/security.html#CVE-2022-33140cnnvd
- https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhrenisa_euvd
- https://nifi.apache.org/security.html#CVE-2022-33140enisa_euvd
- https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhrMailing ListVendor Advisorynvd
- https://nifi.apache.org/security.html#CVE-2022-33140Issue TrackingVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan