This vulnerability in Apache Airflow's Keycloak authentication manager is fundamentally a trust boundary misconfiguration, not a code defect. The issue: Airflow validates credentials against the entire Keycloak realm rather than scoping authentication to the specific client_id Airflow is configured to use. When you authenticate via client-credentials grant, Airflow creates a session for whatever subject Keycloak returns, regardless of which client originated the token request. The fix—accepting only the configured client—confirms the original code never validated client scope.

The credential oracle effect is the exploitation mechanism that makes this severe. An attacker with credentials for any confidential client in your realm can test those credentials against Airflow without triggering Keycloak's brute-force protections. Airflow forwards the request to Keycloak; Keycloak sees a legitimate client-credentials flow from a known application. Your IdP logs show Airflow as the source, not the attacker. This shifts the detection burden: monitor Airflow logs for authenticated users with zero effective permissions—that's the fingerprint of credential relay.

The blast radius compounds the risk. Airflow connections don't just hold 'how to reach external systems'—they hold the credentials for those systems: database passwords, cloud API keys, downstream service tokens. And Airflow workflows are executable code, enabling task injection, output exfiltration, or persistence through scheduled jobs. A relay attack doesn't just grant Airflow access; it hands an attacker your entire credential graph and execution pipeline.

Patch to v0.10.0 immediately. After patching, verify your configuration explicitly specifies the client_id Airflow should accept—without this, the vulnerability remains exploitable. Audit your Keycloak realm topology: identify all confidential clients, their service accounts, and any cross-application trust relationships. The library fix closes the vulnerability forward; it doesn't resolve the historical window where any compromised realm service account could have authenticated. That audit lives in your IdP logs, not your Python dependencies.