High

Code injection in Apache NiFi and NiFi Registry

  • Disclosed: 16.06.2022
  • Updated: 11.10.2026 12:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.nifi:nifi >= 1.10.0, < 1.16.3 1.16.3
Java / Kotlin (Maven) org.apache.nifi.registry:nifi-registry-core >= 0.6.0, < 1.16.3 1.16.3

References

CVSS score 8.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-74, CWE-78
Platform
Java / Kotlin (Maven)
Package
org.apache.nifi:nifi, org.apache.nifi.registry:nifi-registry-core
Disclosed
16.06.2022
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-77hf-23pq-2g7c - CC BY 4.0

Vulnerability history: org.apache.nifi:nifi

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (21) in the archive
Total entries
21
First → latest
12.2018 06.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • High 9
  • Medium 10

Disclosures per year

  1. 2018: 3
  2. 2019: 2
  3. 2020: 0
  4. 2021: 0
  5. 2022: 16
  6. 2023: 0
  7. 2024: 0
  8. 2025: 0
  9. 2026: 0
Severity:
  1. Code injection in Apache NiFi and NiFi Registry this entry
    High · 8.8 CVE-2022-33140 >= 1.10.0, < 1.16.3 1.16.3
  2. High · 7.5 CVE-2017-7667 < 0.7.4, >= 1.0.0, < 1.3.0 0.7.4, 1.3.0
  3. Critical · 9.8 CVE-2017-5636 < 0.7.2, >= 1.0.0, < 1.1.2 0.7.2, 1.1.2
  4. Critical · 9.8 CVE-2017-15697 >= 1.0.0, < 1.5.0 1.5.0
  5. High · 7.5 CVE-2017-12632 >= 1.0.0, < 1.5.0 1.5.0
  6. High · 7.5 CVE-2018-1310 < 1.6.0 1.6.0
  7. High · 7.5 CVE-2017-5635 < 0.7.2, >= 1.0.0, < 1.1.2 0.7.2, 1.1.2
  8. High · 7.5 CVE-2022-29265 >= 0.0.1, < 1.16.1 1.16.1
  9. High · 7.5 CVE-2020-9491 >= 1.2.0, < 1.12.0-RC1 1.12.0-RC1
  10. High · 7.5 CVE-2020-9487 >= 1.0.0, < 1.12.0-RC1 1.12.0-RC1
  11. High · 7.5 CVE-2018-17195 >= 1.0.0, < 1.8.0 1.8.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.