Apache Airflow Providers Apache Kafka
Monthly
Arbitrary code execution in the control plane of Apache Airflow deployments using the Apache Kafka provider 1.15.0 up to but not including 2.0.0: an authenticated user who can edit Airflow connections (PR:L) can plant a dotted-path string in a Kafka connection's extra field that the provider resolves into a Python callable via import_string without any allowlist, and confluent-kafka then invokes it inside the scheduler process. Exploitation is conditional and the limiting factors are substantial: the Kafka event producer must be explicitly enabled through dag_run_events_enabled or task_instance_events_enabled (both disabled by default), and the broker must be a plain Kafka cluster or Amazon MSK, since Google Managed Kafka overwrites the user-supplied oauth_cb and is unaffected. This breaks the Airflow security model because connection-configuration users are only supposed to reach code execution on workers, not the scheduler, and EPSS is low at 0.45% (38th percentile) with no public exploit identified at time of analysis; the assessed vector uses AC:H to reflect the required preconditions.
Arbitrary code execution in the control plane of Apache Airflow deployments using the Apache Kafka provider 1.15.0 up to but not including 2.0.0: an authenticated user who can edit Airflow connections (PR:L) can plant a dotted-path string in a Kafka connection's extra field that the provider resolves into a Python callable via import_string without any allowlist, and confluent-kafka then invokes it inside the scheduler process. Exploitation is conditional and the limiting factors are substantial: the Kafka event producer must be explicitly enabled through dag_run_events_enabled or task_instance_events_enabled (both disabled by default), and the broker must be a plain Kafka cluster or Amazon MSK, since Google Managed Kafka overwrites the user-supplied oauth_cb and is unaffected. This breaks the Airflow security model because connection-configuration users are only supposed to reach code execution on workers, not the scheduler, and EPSS is low at 0.45% (38th percentile) with no public exploit identified at time of analysis; the assessed vector uses AC:H to reflect the required preconditions.