⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

Apache NiFi Process Group Flow Replacement Allows Parameter Provider Attachment Across Authorization Tiers (CVE-2026-107164) | Alireza Bolbolabadi - Red Team Security
LOADING

Apache NiFi Process Group Flow Replacement Allows Parameter Provider Attachment Across Authorization Tiers (CVE-2026-107164)

CVE-2026-107164 at a glance

CVE-2026-107164 records an authorization-logic inconsistency in Apache NiFi. The NVD entry was published on 2026-12-02 and names Apache NiFi 1.18.0 through 2.12.0 as the affected range. Apache NiFi 2.13.0 is the release that closes the gap.

The flaw surfaces when an actor routes a configuration change through the Process Group flow replacement endpoint rather than through the direct Parameter Context API. The two endpoints should produce the same access decision for the same underlying change, but in vulnerable releases they do not.

Affected systems

  • Apache NiFi 1.18.0 through 2.12.0 on any deployment that exposes the flow replacement API to authenticated users.

  • Only deployments that differentiate read from write authorization on shared Parameter Contexts are reachable. Installations that collapse read and modify permissions on Parameter Contexts into a single tier are not subject to the issue, per the advisory.

  • Apache NiFi 2.13.0 carries the corrected authorization model and addresses the gap.

How the authorization gap manifests

Apache NiFi supports attaching a Parameter Provider to an existing Parameter Context through two entry points:

  • The direct Parameter Context update API. This path requires write permission on the Parameter Context for the change to succeed.

  • The Process Group flow replacement endpoint. This path requires write permission on the targeted Parameter Context only when the replacement flow adds a parameter or modifies the inherited Parameter Context list.

The second check does not enumerate the case of attaching a Parameter Provider to an existing context. As a result, an authenticated principal that holds write on a Process Group and only read on the shared Parameter Context that the Process Group is bound to can use the flow replacement path to associate a Parameter Provider with that context and to mark the association as synchronized, despite never satisfying the direct API's authorization requirement.

The change is a metadata-level operation. The advisory explicitly notes that the flow replacement path does not fetch provider values and does not apply them to the Parameter Context. The immediate effect is a configuration-state change. For the values that components bound to the context actually see to be influenced, a separate, authorized parameter application action must occur, and that action is outside the scope of CVE-2026-107164 itself.

Conditions for real-world exposure

For CVE-2026-107164 to be reachable, three conditions have to hold simultaneously:

  • The NiFi instance is on a vulnerable release in the 1.18.0 to 2.12.0 range.

  • The deployed authorization policy splits read and write privileges on shared Parameter Contexts, so that read-only access is meaningful as a distinct role.

  • An authenticated user holds write on a Process Group that is bound, directly or through inheritance, to such a shared Parameter Context.

Authentication is required and a legitimate Process Group editing role is the minimum privilege level to attempt the operation. No user interaction is involved. The provided context does not reference public exploit code, active exploitation in the wild, or inclusion in a public KEV catalog.

Mitigation

The straightforward remediation is to upgrade to Apache NiFi 2.13.0. The 2.13.0 release requires write permission on the existing Parameter Context whenever a flow replacement would attach a Parameter Provider, aligning the flow replacement path with the direct API.

For environments that cannot upgrade immediately, the exposure profile narrows considerably under two conditions:

  • If the deployment does not separate read from write permissions on Parameter Contexts, the vulnerability has no reachable path. Audit logs of the current policy model confirm whether this condition holds.

  • If the deployment does keep the two tiers separate, restricting who holds Process Group write permission near shared Parameter Contexts, or granting write on the shared context to the same principals, reduces the reachable surface until 2.13.0 can be deployed.

Detection considerations

The forensic signature of the issue is a configuration change that the principal was not authorized to make directly. Useful signals include:

  • Audit entries showing a Process Group flow replacement event that produces a Parameter Provider attachment or a synchronization flag change on a Parameter Context, in a session where no Parameter Context write authorization decision was recorded for the same principal.

  • Historical Parameter Provider association records on shared Parameter Contexts that have no corresponding Parameter Context write action by the same principal within the relevant session.

These indicators are not by themselves conclusive evidence of exploitation, but in an environment known to be on a vulnerable release their appearance is worth deeper investigation.

منابع

·
← اخبار