GHSA-77hf-23pq-2g7c

Suggest an improvement
Source
https://github.com/advisories/GHSA-77hf-23pq-2g7c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-77hf-23pq-2g7c/GHSA-77hf-23pq-2g7c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-77hf-23pq-2g7c
Aliases
Published
2022-06-16T00:00:26Z
Modified
2023-11-08T04:09:39.172751Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Code injection in Apache NiFi and NiFi Registry
Details

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.

Database specific
{
    "nvd_published_at": "2022-06-15T15:15:00Z",
    "github_reviewed_at": "2022-06-17T21:49:10Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-74",
        "CWE-78"
    ]
}
References

Affected packages

Maven / org.apache.nifi.registry:nifi-registry-core

Package

Name
org.apache.nifi.registry:nifi-registry-core
View open source insights on deps.dev
Purl
pkg:maven/org.apache.nifi.registry/nifi-registry-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.6.0
Fixed
1.16.3

Affected versions

0.*

0.7.0
0.8.0

1.*

1.14.0
1.15.0
1.15.1
1.15.2
1.15.3
1.16.0
1.16.1
1.16.2

Maven / org.apache.nifi:nifi

Package

Name
org.apache.nifi:nifi
View open source insights on deps.dev
Purl
pkg:maven/org.apache.nifi/nifi

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.10.0
Fixed
1.16.3

Affected versions

1.*

1.10.0
1.11.0
1.11.1
1.11.2
1.11.3
1.11.4
1.12.0
1.12.1
1.13.0
1.13.1
1.13.2
1.14.0
1.15.0
1.15.1
1.15.2
1.15.3
1.16.0
1.16.1
1.16.2