NifiApplication · Apache

CVE-2022-33140

HIGH · 8.8 CVSS v3.1 Published 2022-06-15
Fix available
A fix is available. Upgrade to after 1.16.2 or later.
See remediation →
94/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The optional ShellUserGroupProvider in Apache NiFi and NiFi Registry fails to sanitize user-provided arguments when constructing group resolution shell commands, allowing OS command injection on Linux and macOS. An authenticated attacker with specific authorization privileges (modify access policies for NiFi, read user groups for NiFi Registry) can inject arbitrary commands through provider configuration.

MitigationIf ShellUserGroupProvider is not required, disable it. Otherwise, upgrade to Apache NiFi/NiFi Registry 1.16.3 or later which removes command formatting from user-provided arguments.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
NifiApplication
Affected:>= 1.10.0, <= 1.16.2
Nifi RegistryApplication
Affected:>= 0.6.0, <= 1.16.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify which Apache NiFi or NiFi Registry component is installed
    Check installed version using nifi --version or nifi-registry --version, or examine the nar/nifi-registry-webWAR file name in the installation directory
    Affected if Version is between 1.10.0 and 1.16.2 for NiFi, or between 0.6.0 and 1.16.2 for NiFi Registry
  2. Determine if ShellUserGroupProvider is configured
    Search configuration files (authorizers.xml or login-identity-providers.xml) for <property name="User Group Provider">ShellUserGroupProvider</property> or inspect the nifi.properties file for related shell provider configuration
    Affected if ShellUserGroupProvider is enabled or referenced in the authorization configuration
  3. Inspect ShellUserGroupProvider configuration for user-provided arguments
    Locate the ShellUserGroupProvider definition in the authorizers.xml or user-group-provider.xml configuration file and examine the <property> elements for command templates containing user input parameters
    Affected if The provider configuration contains command templates that accept user-provided arguments (such as user name or group name parameters)
  4. Verify access policies for users with modification privileges
    Review access policies in the authorizers.xml or through the NiFi UI Admin interface to identify users granted "modify access policies" (NiFi) or "read user groups" (NiFi Registry)
    Affected if Any user account has privileges to modify access policies (NiFi) or read user groups (NiFi Registry), and the ShellUserGroupProvider is active

The environment is affected if ShellUserGroupProvider is configured and the installed NiFi or NiFi Registry version falls within the affected ranges (1.10.0-1.16.2 for NiFi, 0.6.0-1.16.2 for NiFi Registry).

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 1.16.2
Interim mitigation

If ShellUserGroupProvider is not required, disable it. Otherwise, upgrade to Apache NiFi/NiFi Registry 1.16.3 or later which removes command formatting from user-provided arguments.

Recommended fix High confidence

Apache NiFi and NiFi Registry 1.17.0 or later

  1. 1. Identify the current deployment version of Apache NiFi and/or NiFi Registry using the system diagnostics or version file
  2. 2. Review the current authorizers.xml configuration to check if ShellUserGroupProvider is enabled: look for <userGroupProvider> entries with <class>org.apache.nifi.authorization.ShellUserGroupProvider</class>
  3. 3. If ShellUserGroupProvider is enabled, identify all users and groups that have access to modify access policies (NiFi) or read user groups (NiFi Registry)
  4. 4. Upgrade Apache NiFi from 1.16.2 or earlier to version 1.17.0 or later
  5. 5. Upgrade Apache NiFi Registry from 1.16.2 or earlier to version 1.17.0 or later
  6. 6. After upgrade, verify the ShellUserGroupProvider configuration does not allow command injection by testing with benign arguments
  7. 7. Review access policies to ensure only necessary authenticated users have elevated privileges
Caveat Minor: Upgrading from 1.16.x to 1.17.x may introduce new features or behavior changes; review release notes for migration requirements

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Nifi Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
18.0 hours of engineering $3,200
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-33140 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-33140 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data