WaratekVRT Sign in

CVE-2022-33140

Affected software2 products, listed below
Severity8.8 High CVSS 3.1 2 scores
Fixed in1.16.3
WeaknessOS command injection (CWE-78)
Published15 Jun 2022
Updated17 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.

  • 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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

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

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.

VersionScoreBandVectorAssignerType
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
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
https://github.com/apache/nifi PACKAGE
https://lists.apache.org/thread/bzs2pcdjsdrh5039oslmfr9mbs9qqdhr WEB
https://nifi.apache.org/security.html#CVE-2022-33140 WEB

Timeline

Published2022-06-15By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.