CVE-2024-56512 Apache NiFi: Missing Complete Authorization for Parameter and Service References
Authenticated users can bypass authorization checks to access unauthorized Parameter Contexts and Controller Services when creating Process Groups in Apache NiFi.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-56512?
CVE-2024-56512 is a low-severity missing authorization vulnerability in Apache Nifi, published on 28 Dec 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Apache NiFi 1.10.0 through 2.0.0 are missing fine-grained authorization checking for Parameter Contexts, referenced Controller Services, and referenced Parameter Providers, when creating new Process Groups.
Creating a new Process Group can include binding to a Parameter Context, but in cases where the Process Group did not reference any Parameter values, the framework did not check user authorization for the bound Parameter Context. Missing authorization for a bound Parameter Context enabled clients to download non-sensitive Parameter values after creating the Process Group.
Creating a new Process Group can also include referencing existing Controller Services or Parameter Providers. The framework did not check user authorization for referenced Controller Services or Parameter Providers, enabling clients to create Process Groups and use these components that were otherwise unauthorized.
This vulnerability is limited in scope to authenticated users authorized to create Process Groups. The scope is further limited to deployments with component-based authorization policies. Upgrading to Apache NiFi 2.1.0 is the recommended mitigation, which includes authorization checking for Parameter and Controller Service references on Process Group creation.
Which versions are affected by CVE-2024-56512?
3 open source packages ship an affected version, including org.apache.nifi:nifi-web-api and nifi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.nifi:nifi-web-api Maven | From 1.10.0 | 2.1.0 |
org.apache.nifi:nifi-web-api Maven | From 1.10.0 | 2.1.0 |
nifi Bitnami | From 1.10.0 | 2.1.0 |
Products include Apache Nifi.
How do I fix CVE-2024-56512?
Upgrade org.apache.nifi:nifi-web-api to 2.1.0 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-56512 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-56512 exists.
Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.
Other vulnerabilities in Apache Nifi
- CVE-2018-1309 Improper Restriction of XML External Entity Reference in Apache NiFi
- CVE-2017-15697 Apache NiFi XSS issue in context path handling
- CVE-2017-5636 Injection in Apache NiFi
- CVE-2026-68981 Apache NiFi: Uncontrolled Resource Consumption through Decompression of HTTP Requests
- CVE-2023-36542 Apache NiFi: Potential Code Injection with Properties Referencing Remote Resources
Sources
Also known as BIT-nifi-2024-56512, GHSA-mpj7-7mg7-x95j.