Summary
Apache Airflow's CeleryExecutor could run forged callback workloads without validating their authentication token. Anyone able to write to the Celery broker could potentially execute arbitrary code on CeleryExecutor workers, even without Airflow credentials.
Affected context
The vulnerability affects Apache Airflow deployments using the CeleryExecutor. It occurs when workers process callback workloads, including deadline-alert callbacks, without first validating the workload's authentication token.
Exploit preconditions
- Attack surface: The Celery broker and callback workload processing path
- Required access: Ability to write to the Celery broker; Airflow credentials are not required
- Trigger point: A CeleryExecutor worker consumes and runs a forged callback workload
- Why exploitation is possible: The callback is executed without validating its authentication token
Why this happens
The worker runs a security-sensitive callback workload without verifying that the request is authenticated. This is an instance of CWE-306: Missing Authentication for Critical Function: a critical operation is available without the required authentication check. In this case, the missing token validation allows broker-supplied callback data to reach execution.
Potential impact
- An attacker may execute arbitrary code on CeleryExecutor workers
- Compromised workers could expose or alter data accessible to their runtime
- An attacker could disrupt task processing or other Airflow workloads
- Worker compromise could provide a foothold for further activity, depending on permissions and network access
General mitigation guidance
Mitigation generally focuses on authenticating callback workloads before execution and reducing the trust placed in broker messages.
- Require token validation through a trusted execution or authentication boundary before running callbacks
- Restrict broker write access to authorized producers and apply strong broker authentication and access controls
- Treat queued workload data as untrusted, even when it originates from internal infrastructure
- Run workers with least privilege and limit their filesystem, network, and service-account access
- Monitor broker access and callback execution for unexpected producers or activity
How teams detect issues like this
- Review worker code paths to confirm authentication occurs before callback execution
- Use static analysis and code review checks to flag critical operations reachable without authentication or authorization
- Audit broker ACLs, credentials, and producer identities for overly broad write permissions
- Enforce policies requiring authenticated workload claims and least-privilege worker configurations
- Monitor callback execution and broker writes for unexpected sources or patterns

