CVE-2026-68076

Apache Airflow: Connections test API: team-scope guard bypass resolves another team's environment Connection

Published Aug 12, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Apache Airflow's environment-variable secrets backend resolved a team-scoped Connection or Variable from the wrong team's scope. The guard meant to prevent this only ran when no team scope was supplied, and its pattern could not match a team name containing an underscore, which team names are allowed to contain. When the guard did not apply, the lookup fell through to an unconditional global read that resolved the stored `AIRFLOW_CONN__<TEAM>___<ID>` variable regardless of which team asked. In multi-team mode an authenticated user of one team could therefore have `POST /api/v2/connections/test` resolve another team's Connection and authenticate outward with that team's credentials; the endpoint uses the credentials rather than returning them. Exploitation requires `[core] multi_team` enabled, `[core] test_connection` set to `Enabled` (it ships `Disabled`), team-scoped secrets provisioned as environment variables in the API-server process, and knowledge of the encoded identifier. Redirecting the test at an attacker-controlled host is separately blocked. Users are advised to upgrade to apache-airflow 3.3.1 or later.

Analysis

AI-generated

Technical impact

Apache Airflow’s environment-variable secrets backend can resolve a team-scoped Connection or Variable from the wrong team's scope. A guard intended to block this only ran when no team scope was supplied, and could not match team names that include underscores, a valid naming convention. When the guard did not apply, the lookup fell through to an unconditional global read, resolving the stored AIRFLOW_CONN__<TEAM>___<ID> variable regardless of which team requested it. In multi-team mode, an authenticated user of one team could therefore use the POST /api/v2/connections/test endpoint to resolve another team’s Connection and authenticate outward with that team’s credentials; the endpoint uses the credentials rather than merely returning them.

Affected Systems

Apache Software Foundation’s Apache Airflow, versions prior to 3.3.1, in multi-team deployments that enable the environment‑variable secrets backend and the test_connection feature.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity. Exploitation requires that multi_team is enabled, test_connection is set to Enabled (the default is Disabled), team‑scoped secrets are provisioned as environment variables in the API‑server process, and the attacker knows the encoded identifier. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog, suggesting a moderate likelihood of exploitation but possibly limited due to the prerequisite conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Airflow to version 3.3.1 or later.
  • If an upgrade is not immediately feasible, disable multi-team mode by setting [core] multi_team = False.
  • Alternatively, disable the test_connection feature by setting [core] test_connection = Disabled or block the /api/v2/connections/test endpoint through an API gateway.
  • Ensure that environment-variable secrets are not shared across teams or enforce strict team scoping by adjusting the variable naming patterns.

Generated by OpenCVE AI on August 12, 2026 at 23:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-75mg-c62r-v95g Apache Airflow environment-variable secrets backend permits cross-team credential use
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache airflow
Vendors & Products Apache
Apache airflow
Type Values Removed Values Added
Description Apache Airflow's environment-variable secrets backend resolved a team-scoped Connection or Variable from the wrong team's scope. The guard meant to prevent this only ran when no team scope was supplied, and its pattern could not match a team name containing an underscore, which team names are allowed to contain. When the guard did not apply, the lookup fell through to an unconditional global read that resolved the stored `AIRFLOW_CONN__<TEAM>___<ID>` variable regardless of which team asked. In multi-team mode an authenticated user of one team could therefore have `POST /api/v2/connections/test` resolve another team's Connection and authenticate outward with that team's credentials; the endpoint uses the credentials rather than returning them. Exploitation requires `[core] multi_team` enabled, `[core] test_connection` set to `Enabled` (it ships `Disabled`), team-scoped secrets provisioned as environment variables in the API-server process, and knowledge of the encoded identifier. Redirecting the test at an attacker-controlled host is separately blocked. Users are advised to upgrade to apache-airflow 3.3.1 or later.
Title Apache Airflow: Connections test API: team-scope guard bypass resolves another team's environment Connection
Weaknesses CWE-639
References
Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 3, 2026, 6:59 AM
Reserved
Jul 30, 2026, 9:10 AM
Status
Modified
Published
Aug 12, 2026, 4:17 PM
Modified
Nov 3, 2026, 7:20 AM