CVE-2024-56512: Apache NiFi - Incomplete Authorization for Parameter Contexts and Service References
Summary
CVE-2024-56512: Apache NiFi: Missing Complete Authorization for Parameter and Service References. Affects org.apache.nifi:nifi-web-api versions >= 1.10.0, < 2.1.0. Fixed in 2.1.0. How to fix ↓
Also tracked for
- nifi · Bitnami
The same CVE-2024-56512 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache NiFi is a powerful data integration tool designed for automating the flow of data between systems. It provides a user-friendly interface for managing data flows, enabling users to create, monitor, and control data pipelines. The tool supports various data formats and protocols, making it versatile for different use cases. However, certain versions of Apache NiFi (1.10.0 through 2.0.0) have a vulnerability that compromises the authorization checks for Parameter Contexts and referenced Controller Services, potentially exposing sensitive data.
Vulnerability Detail
The vulnerability arises from the lack of fine-grained authorization checks when creating new Process Groups in Apache NiFi. Specifically, when a user creates a Process Group that binds to a Parameter Context, the system fails to verify if the user has the necessary permissions for that Parameter Context. This oversight allows authenticated users to access non-sensitive Parameter values without proper authorization. Additionally, the framework does not enforce authorization for referenced Controller Services or Parameter Providers, enabling unauthorized users to create Process Groups that utilize these components. The vulnerability is limited to authenticated users who are authorized to create Process Groups and is particularly relevant in deployments with component-based authorization policies.
How To Fix
Minimum fixed version
2.1.0
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can review and adjust their authorization policies to restrict access to sensitive Parameter Contexts and Controller Services until the upgrade can be performed. However, this is not a complete solution and should only be considered a stopgap measure.
Conclusion
The vulnerability identified as CVE-2024-56512 in Apache NiFi poses a risk due to incomplete authorization checks when creating Process Groups. It is crucial for users to upgrade to version 2.1.0 or later to mitigate this risk effectively. Additionally, users can utilize Vulert to monitor their applications for vulnerabilities in real-time.
See every vulnerability recorded for org.apache.nifi:nifi-web-api →
FAQ
Apache NiFi versions 1.10.0 through 2.0.0 are affected by this vulnerability.
The vulnerability allows authenticated users to access non-sensitive Parameter values and create Process Groups using unauthorized Controller Services and Parameter Providers.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.
Yes, upgrading to Apache NiFi version 2.1.0 or later addresses this vulnerability.
If an immediate upgrade is not possible, review and adjust your authorization policies to limit access to sensitive components.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.nifi:nifi-web-api.