---
id: CVE-2026-30912
aliases:
  - GHSA-w7cf-2pmc-5m4c
  - BIT-airflow-2026-30912
  - PYSEC-2026-18
  - PYSEC-2026-2361
title: >-
  Apache Airflow exposes SQL stack trace despite "api/expose_stack_traces" set
  to false
summary: >-
  Apache Airflow exposes SQL stack trace despite "api/expose_stack_traces" set
  to false
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
vendor: apache-airflow-core
product: apache-airflow-core
ecosystem: pip
affected:
  - apache-airflow-core < 3.2.0
patched:
  - apache-airflow-core 3.2.0
published: '2026-04-18'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-w7cf-2pmc-5m4c'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-30912'
  - url: 'https://github.com/apache/airflow/pull/63028'
  - url: 'https://github.com/apache/airflow'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-18.yaml
  - url: 'https://lists.apache.org/thread/tp6kz1hnfb3zsrrtg19myo8x5x80w8r9'
  - url: 'http://www.openwall.com/lists/oss-security/2026/04/17/5'
tags:
  - osv
  - pip
epss: 0.00756
epssPercentile: 0.53148
ingestedAt: '2026-07-13T18:58:04.195Z'
---

## Overview

In case of SQL errors, exception/stack trace of errors was exposed in API even if "api/expose_stack_traces" was set to false. That could lead to exposing additional information to potential attacker. Users are recommended to upgrade to Apache Airflow 3.2.0, which fixes the issue.

## Affected packages

- `apache-airflow-core < 3.2.0`

## Remediation

Upgrade to a patched release:

- `apache-airflow-core 3.2.0`
