CVE-2026-50203: Apache Airflow SFTP provider Path Traversal Vulnerability
CRITICALCVE-2026-50203 is a CRITICAL (CVSS 9.1) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Apache Airflow SFTP provider libraries in the PyPI ecosystem. The issue involves path traversal in sftphook.retrieve_directory. Remediation is available by upgrading affected packages to version 5.8.1.
CVE-2026-50203 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2026-50203
To remediate this vulnerability, upgrade all affected Apache Airflow SFTP provider 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-providers-sftp>=5.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show apache-airflow-providers-sftp
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-50203, inspect your installed packages using pip:
pip show apache-airflow-providers-sftp
Analyze the terminal output to locate any version of Apache Airflow SFTP provider in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.8.1), your application is affected.
Note: The pip show apache-airflow-providers-sftp command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Apache Airflow SFTP provider, 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-2026-50203 Affected Apache Airflow SFTP provider Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apache-airflow-providers-sftp
|
PyPI |
< 5.8.1
|
5.8.1
|
References
Frequently Asked Questions
What is CVE-2026-50203?
Which Apache Airflow SFTP provider versions are affected?
What version fixes CVE-2026-50203?
Is apache-airflow-providers-sftp affected?
What is the CVSS score of CVE-2026-50203?
What CWE is associated with CVE-2026-50203?
How can I check PyPI dependencies for CVE-2026-50203?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qf38-jq28-3ccq",
"modified" : "2026-07-09T21:07:41Z",
"published" : "2026-06-17T18:35:51Z",
"aliases" : [ "CVE-2026-50203" ],
"summary" : "Apache Airflow SFTP provider: Path traversal in SFTPHook.retrieve_directory",
"details" : "A path traversal in the SFTP provider (`SFTPHook.retrieve_directory` / `SFTPOperator(operation=get)`) let a malicious or compromised remote SFTP server write files outside the configured local destination directory via crafted directory-entry names. No Airflow account is required — the attack surface is any deployment downloading directories from an untrusted SFTP server. Upgrade `apache-airflow-providers-sftp` to 5.8.1 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-airflow-providers-sftp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-50203"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/airflow/pull/67985"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/airflow"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow-providers-sftp/PYSEC-2026-218.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/7f4b284oh44c1n95oq8mh1qc7y1lr9dx"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/06/16/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-18T14:35:04Z",
"nvd_published_at" : "2026-06-17T13:20:47Z"
}
}