Apache Airflow environment-variable secrets backend permits cross-team credential use
Medium5.4CVE-2026-68076 · Published Aug 12, 2026 · updated Oct 2, 2026
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| apache-airflow PyPI | < 3.3.1 | 3.3.1 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-639
- Also known as
- BIT-airflow-2026-68076, CVE-2026-68076, PYSEC-2026-3709
- nvd.nist.gov/vuln/detail/CVE-2026-68076
- github.com/apache/airflow/pull/70736
- github.com/apache/airflow/pull/70886
- github.com/apache/airflow/pull/70902
- github.com/apache/airflow/commit/e0cac1f6b2ddd473c9e6440ee0acc32b7b6581fc
- github.com/apache/airflow/commit/ed87a1a024a55aaa494e6a718cb876f0cbe47b44
- github.com/apache/airflow
- github.com/apache/airflow/releases/tag/3.3.1
- github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-3709.yaml
- lists.apache.org/thread/v4mc51dgmrc1t82mhzsngsgzo2gxsf2l
- www.openwall.com/lists/oss-security/2026/08/12/11
More Apache Airflow advisories
All Apache Airflow| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Aug 12 | Apache Airflow missing team context permits cross-team Dag actions and XCom reads | Medium6.5 | 3.3.1 |
| Aug 12 | Apache Airflow bulk endpoints log Variable and Connection secrets in cleartext | Medium6.5 | 3.3.1 |
| Aug 12 | Apache Airflow Task SDK fails to mask list-shaped JSON Variables | Medium6.5 | 3.3.1 |
| Aug 12 | Apache Airflow Task SDK Callback deserialization can import arbitrary modules in the scheduler | High8.8 | 3.3.1 |
| Aug 12 | Apache Airflow Config API exposes team-scoped sensitive configuration values | Medium6.5 | 3.3.1 |
| Aug 12 | Apache Airflow XCom API permits unsafe deserialization through JSON string literals | Medium5.4 | 3.3.1 |