Description
Apache Airflow's public Import Errors API returns the raw parse-failure stack trace to any user with the `ImportError.can_read` permission when the failing file has no registered DAG. This happens when a file fails to parse before any DAG is defined, or when all of its previously registered DAGs are removed but the parse error remains. Users who should not see that file's details can read stack traces that may expose file paths and code.

Users are advised to upgrade to Apache Airflow 3.4.0 or later, which restricts these stack traces to users with the new `IMPORT_ERRORS_ALL` permission.
Published: 2026-11-09
Score: n/a
EPSS: n/a
KEV: No
Impact: Unauthorized disclosure of stack traces exposing file paths and code
Action: Upgrade
AI Analysis

Impact

The vulnerability arises because the public Import Errors API in Apache Airflow returns the raw parse‑failure stack trace to any user who holds the ImportError.can_read permission when the parsed file has no registered DAG. This can occur for files that fail to parse before defining a DAG or when all registered DAGs are removed but the parse error remains. The returned stack trace may contain sensitive information such as file paths and source code, effectively leaking confidential internal details to adversaries that have the misleadingly permissive ImportError.can_read right. The flaw represents an information‑disclosure weakness (CWE‑285), where insufficient access control allows unintended exposure of internal data.

Affected Systems

Apache Airflow, maintained by the Apache Software Foundation. The impact applies to any installation where the ImportError.can_read permission is granted to users or roles that should not receive detailed error information. The vendor’s guidance is to upgrade to Airflow 3.4.0 or later, where stack traces are restricted to users possessing the new IMPORT_ERRORS_ALL permission. Versions prior to 3.4.0 are vulnerable if the specified permission is in use.

Risk and Exploitability

The vulnerability is effectively limited to authenticated users can obtain ImportError.can_read. An attacker who gains or already has that permission can trivially trigger import errors and read the stack traces, exposing code and file paths. No public exploit has been reported and EPSS data is unavailable, but the lack of a CVSS score does not diminish the impact of the disclosed data. The issue is not listed in CISA KEV, yet the ease of exploitation combined with the sensitivity of the disclosed information makes it a high‑risk disclosure for organizations with permissive role assignments.

Generated by OpenCVE AI on November 9, 2026 at 11:37 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Airflow to version 3.4.0 or newer to enforce the new IMPORT_ERRORS_ALL permission and restrict stack traces to authorized users.
  • Review and tighten role assignments to eliminate or limit the ImportError.can_read permission for users who should not be able to view detailed error information.
  • Persistently monitor Airflow logs for unauthorized attempts to access import error data and consider disabling the public Import Errors API for unauthenticated or untrusted users.

Generated by OpenCVE AI on November 9, 2026 at 11:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache airflow
Vendors & Products Apache
Apache airflow

Mon, 09 Nov 2026 11:30:00 +0000

Type Values Removed Values Added
References

Mon, 09 Nov 2026 10:15:00 +0000

Type Values Removed Values Added
Description Apache Airflow's public Import Errors API returns the raw parse-failure stack trace to any user with the `ImportError.can_read` permission when the failing file has no registered DAG. This happens when a file fails to parse before any DAG is defined, or when all of its previously registered DAGs are removed but the parse error remains. Users who should not see that file's details can read stack traces that may expose file paths and code. Users are advised to upgrade to Apache Airflow 3.4.0 or later, which restricts these stack traces to users with the new `IMPORT_ERRORS_ALL` permission.
Title Apache Airflow: Import Errors API Leaks Unauthorized DAG Stack Traces via Incomplete Per-File RBAC Enforcement
Weaknesses CWE-285
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-11-09T10:12:08.062Z

Reserved: 2026-04-15T16:43:15.722Z

Link: CVE-2026-40913

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T10:17:10.033

Modified: 2026-11-09T11:17:25.507

Link: CVE-2026-40913

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T13:00:13Z

Weaknesses