Apache DolphinScheduler: The `/v2` experimental interface lacks permission checks
Description
Incorrect Authorization vulnerability of /v2 experimental interface in Apache DolphinScheduler.
This issue affects Apache DolphinScheduler: before 3.4.2.
Users are recommended to upgrade to version 3.4.2, which fixes the issue.
Affected products
1- Range: <3.4.2
Patches
Vulnerability mechanics
Root cause
"Missing project-level authorization checks in the `/v2` experimental API endpoints allow any authenticated user to access or trigger workflows in projects they do not own."
Attack vector
An authenticated attacker can call the `/v2` experimental API endpoints for `view-gantt`, `view-variables`, `start-workflow-instance`, or `batch-start-workflow-instance` with a `projectCode` belonging to another project. Because the server did not verify that the login user had permission on that project, the attacker could read another project's workflow instance details or trigger (rerun/backfill) another project's online workflows. No special privileges beyond a valid session are required.
Affected code
The `viewGantt` and `viewVariables` endpoints in `WorkflowInstanceServiceImpl`, and the `triggerWorkflowDefinition` / `backfillWorkflowDefinition` endpoints in `ExecutorServiceImpl`, lacked project-level authorization checks. The patch adds calls to `projectService.checkProjectAndAuthThrowException()` in these methods and propagates the `projectCode` path variable through the controller layer.
What the fix does
The patch inserts `projectService.checkProjectAndAuthThrowException(loginUser, projectCode, RERUN)` (or `WORKFLOW_INSTANCE`) at the top of each vulnerable service method before any data is read or transformed. It also adds a cross-check that the resolved `WorkflowDefinition` belongs to the URL's `projectCode`, throwing `WORKFLOW_DEFINITION_NOT_EXIST` if they mismatch. The controller layer now propagates `projectCode` into the request builders so the service layer can perform the check.
Preconditions
- authAttacker must have a valid authenticated session with Apache DolphinScheduler.
- inputThe target project must have at least one workflow instance or an online workflow definition.
Generated on Jun 17, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
1- lists.apache.org/thread/5o5jrg1snkmrto96wg015wgbh7hyckzcmitrevendor-advisory
News mentions
0No linked articles in our index yet.