Summary
Apache Airflow did not reject reserved serialization keys in a DAG run's conf. When a user who can trigger a DAG supplies such a configuration to a DAG using a deadline alert with an asynchronous callback, a missed deadline may repeatedly crash the scheduler or cause objects to be reconstructed inside the Triggerer.
Affected context
The issue concerns DAG runs that use deadline alerts with asynchronous callbacks. It becomes risky when a user who is permitted to trigger such a DAG can supply conf containing reserved serialization keys, and that configuration is later processed after the deadline is missed.
Exploit preconditions
- Attack surface: DAG run configuration handling in Airflow.
- Required access: Permission to trigger a DAG that uses a deadline alert with an asynchronous callback.
- Trigger point: Processing the run's
confwhen a deadline is missed and the callback workflow proceeds. - Why exploitation is possible: Reserved serialization keys are not rejected, allowing configuration data to contribute to scheduler failures or object reconstruction in the Triggerer.
Why this happens
The underlying issue is unsafe handling of serialized data, mapping to CWE-502: Deserialization of Untrusted Data. The application accepts reserved serialization keys in user-provided DAG run configuration and later processes that data in a context where it can cause objects to be reconstructed. A failure to distinguish ordinary configuration values from serialization metadata creates the unsafe pattern.
Potential impact
- The scheduler may crash repeatedly, disrupting scheduling operations.
- Objects may be reconstructed inside the Triggerer from attacker-influenced configuration.
- Deadline alert processing and affected DAG workflows could be interrupted.
- Airflow service availability may be reduced for other users.
General mitigation guidance
Defensive patterns focus on treating DAG run configuration as untrusted data and preventing it from controlling object reconstruction.
- Reject or remove reserved serialization keys at configuration boundaries.
- Use constrained data formats and explicit schemas for user-supplied configuration.
- Keep deserialization restricted to known, expected primitive types.
- Isolate callback and Triggerer processing, and apply least-privilege permissions.
- Use maintained releases that include security fixes, following the organization's normal update process.
How teams detect issues like this
- Review configuration parsing and serialization paths for acceptance of reserved or internal metadata keys.
- Use static analysis and code review to identify deserialization or object-reconstruction APIs that receive user-controlled values.
- Add tests that verify malformed or reserved configuration keys are rejected before callback processing.
- Monitor scheduler and Triggerer logs for repeated crashes or errors associated with deadline processing.
- Enforce policies that restrict which users can trigger DAGs with asynchronous deadline callbacks.

