Skip to main content

CVE-2026-86792: CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in Apache Software Foundation Apache Airflow Apache Kafka provider

0
Critical
VulnerabilityCVE-2026-86792cvecve-2026-86792cwe-470
Published: 09/16/2026 (09/16/2026, 09:08:20 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Airflow Apache Kafka provider

Description

CVE-2026-86792 is a vulnerability in Apache Airflow Apache Kafka provider versions 1.15.0 up to but not including 2.0.0. It involves unsafe reflection where dotted-path strings from a Kafka connection's extra field are resolved into Python callables without an allowlist, enabling arbitrary code execution in the scheduler process if Kafka event producer features are enabled. This flaw allows users with only connection editing privileges to execute code in the control plane, violating Airflow's security model. Deployments using Google Managed Kafka are not affected. The issue is fixed in version 2.0.0 by adding an allowlist for connection-string callbacks.

Affected software

Apache Software Foundation

Apache Airflow Apache Kafka provider

Affected versions
>=1.15.0 <2.0.0
apache-airflow-providers-apache-kafka
pkg:pypi/apache-airflow-providers-apache-kafka
Affected versions
>=1.15.0 <2.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/16/2026, 09:46:48 UTC

Technical Analysis

The vulnerability arises from the Apache Airflow Apache Kafka provider resolving dotted-path strings found in a Kafka connection's extra field into Python callables via import_string without any allowlist. When Kafka event producer features (dag_run_events_enabled or task_instance_events_enabled) are enabled, the confluent-kafka client is instantiated inside the scheduler process, allowing a user with only connection editing privileges to execute arbitrary code in the scheduler. This breaks the intended security model where such code execution should be limited to workers. Google Managed Kafka deployments are not affected due to overwriting of user-supplied oauth_cb. The vulnerability affects versions >=1.15.0 and <2.0.0 and is addressed in version 2.0.0 by introducing an allowlist configuration option.

Potential Impact

An attacker with permission to edit Airflow connections can achieve arbitrary code execution in the scheduler process if Kafka event producer features are enabled. This elevates privileges beyond the intended scope, potentially compromising the control plane of Airflow deployments using plain Kafka brokers or Amazon MSK. Deployments using Google Managed Kafka are not vulnerable. This could lead to full compromise of the Airflow scheduler environment.

Mitigation Recommendations

Users should upgrade to apache-airflow-providers-apache-kafka version 2.0.0 or later, which introduces an allowlist configuration option for connection-string callbacks to prevent unsafe reflection. If upgrading is not immediately possible, disabling the Kafka event producer features (dag_run_events_enabled and task_instance_events_enabled) will mitigate the risk, as these are disabled by default. There is no indication that other mitigations are sufficient or recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-09-08T11:54:21.118Z
State
PUBLISHED

Threat ID: 6aaa621555bf5e2cf54c8cd7

Added to database: 09/16/2026, 09:32:05 UTC

Last enriched: 09/16/2026, 09:46:48 UTC

Last updated: 09/16/2026, 09:49:19 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses