CVE-2026-86792 Code injection in Apache Airflow Apache Kafka provider
Attackers with connection-editing privileges can execute arbitrary code on the Airflow scheduler if Kafka event producers are enabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-86792?
CVE-2026-86792 is a high-severity code injection vulnerability in Apache Airflow Apache Kafka provider, published on 16 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Apache Airflow Apache Kafka provider versions 1.15.0 before 2.0.0 resolve dotted-path strings found in a Kafka connection's `extra` field into Python callables via `import_string`, with no allowlist, and hand them to the confluent-kafka client which invokes them. Deployments that have enabled the Kafka event producer — `dag_run_events_enabled` or `task_instance_events_enabled`, both disabled by default — build that client inside the scheduler process, so a user whose only privilege is editing Airflow connections gains arbitrary code execution in the control plane; the Airflow security model limits connection-configuration users to code execution on workers, not the scheduler. Deployments using Google Managed Kafka are not affected, because that code path overwrites any user-supplied `oauth_cb`; plain brokers and Amazon MSK are exposed. Users are recommended to upgrade to apache-airflow-providers-apache-kafka 2.0.0 or later, which adds an allowlist configuration option for connection-string callbacks.
Weakness: CWE-470
Which versions are affected by CVE-2026-86792?
1 open source package ship an affected version, including apache-airflow-providers-apache-kafka. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apache-airflow-providers-apache-kafka PyPI | From 1.15.0 | 2.0.0 |
Products include Apache Apache-Airflow-Providers-Apache-Kafka.
How do I fix CVE-2026-86792?
Upgrade apache-airflow-providers-apache-kafka to 2.0.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-86792 being exploited?
There is no known exploitation of CVE-2026-86792 in the wild and no public exploit code.
Sources
Also known as GHSA-8wf7-xwcv-w393, PYSEC-2026-3986.