---
id: CVE-2026-68076
title: >-
  Apache Airflow's environment-variable secrets backend resolved a team-scoped
  Connection or Variable from the wrong team's scope
summary: >-
  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 …
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L'
cwe:
  - CWE-639
vendor: apache
product: airflow
affected:
  - airflow < 3.3.1
patched:
  - airflow 3.3.1
published: '2026-08-12'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T16:17:14.773'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-68076'
references:
  - url: 'https://github.com/apache/airflow/pull/70736'
    label: security@apache.org
  - url: 'https://github.com/apache/airflow/pull/70886'
    label: security@apache.org
  - url: 'https://github.com/apache/airflow/pull/70902'
    label: security@apache.org
  - url: 'https://lists.apache.org/thread/v4mc51dgmrc1t82mhzsngsgzo2gxsf2l'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/08/12/11'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
  - osv
  - pip
epss: 0.00622
epssPercentile: 0.47507
aliases:
  - PYSEC-2026-3709
  - BIT-airflow-2026-68076
ecosystem: pip
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-08-12T18:58:28.378048Z'
ingestedAt: '2026-08-19T19:22:21.421Z'
---

## Overview

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.

## Affected

- `airflow < 3.3.1`

## Remediation

Upgrade past the affected range:

- `airflow 3.3.1`

## Package advisory (CVE-2026-68076)

Affected packages:

- `apache-airflow < 3.3.1`

Patched in:

- `apache-airflow 3.3.1`

Source: https://osv.dev/vulnerability/PYSEC-2026-3709
