CVE-2025-54831: Apache Airflow Connection Sensitive Details Exposed To Vulnerability
MODERATECVE-2025-54831 is a MODERATE connection sensitive details exposed to vulnerability (CWE-213: Exposure of Sensitive Information Due to Incompatible Policies) affecting Apache Airflow libraries in the PyPI ecosystem. The issue involves connection sensitive details exposed to users with read permissions. Remediation is available by upgrading affected packages to version 3.0.4.
CVE-2025-54831 at a Glance
How to Fix CVE-2025-54831
To remediate this vulnerability, upgrade all affected Apache Airflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install apache-airflow>=3.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show apache-airflow
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-54831, inspect your installed packages using pip:
pip show apache-airflow
Analyze the terminal output to locate any version of Apache Airflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.4), your application is affected.
Note: The pip show apache-airflow command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-213: Exposure of Sensitive Information Due to Incompatible Policies, where the product's intended functionality exposes information to certain actors in accordance with the developer's security policy, but this information is regarded as sensitive according to the intended security policies of other stakeholders such as the product's administrator, users, or others whose information is being processed. In Apache Airflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-54831 Affected Apache Airflow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apache-airflow
|
PyPI |
≥ 3.0.3
< 3.0.4
All 1 versions
3.0.3
|
3.0.4
|
References
Frequently Asked Questions
What is CVE-2025-54831?
Which Apache Airflow versions are affected?
What version fixes CVE-2025-54831?
Is apache-airflow affected?
What CWE is associated with CVE-2025-54831?
How can I check PyPI dependencies for CVE-2025-54831?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q475-2pgm-7hvp",
"modified" : "2026-06-05T14:17:01Z",
"published" : "2025-09-26T09:31:11Z",
"aliases" : [ "CVE-2025-54831" ],
"summary" : "Apache Airflow: Connection sensitive details exposed to users with READ permissions",
"details" : "Apache Airflow 3 introduced a change to the handling of sensitive information in Connections. The intent was to restrict access to sensitive connection fields to Connection Editing Users, effectively applying a \"write-only\" model for sensitive values.\n\nIn Airflow 3.0.3, this model was unintentionally violated: sensitive connection information could be viewed by users with READ permissions through both the API and the UI. This behavior also bypassed the `AIRFLOW__CORE__HIDE_SENSITIVE_VAR_CONN_FIELDS` configuration option.\n\nThis issue does not affect Airflow 2.x, where exposing sensitive information to connection editors was the intended and documented behavior.\n\nUsers of Airflow 3.0.3 are advised to upgrade Airflow to >=3.0.4.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-airflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.3"
}, {
"fixed" : "3.0.4"
} ]
} ],
"versions" : [ "3.0.3" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54831"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/airflow"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2025-85.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/vblmfqtydrp5zgn2q8tj3slk5podxspf"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2025/09/25/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-213" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-26T14:54:17Z",
"nvd_published_at" : "2025-09-26T08:15:38Z"
}
}