GHSA-qf38-jq28-3ccq
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperate or compromise target SFTP server
-
DeliveryCraft directory entries with traversal sequences
-
ExploitAirflow DAG triggers SFTPOperator directory download
-
ExecutionHook constructs unsanitized local path
-
PersistAttacker-controlled file written outside destination
-
ImpactLeverage planted file for persistence or escalation
Vulnerability Assessment
| Weakness |
CWE
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) the Airflow deployment must use SFTPHook.retrieve_directory or SFTPOperator with operation=get configured to download an entire directory - not just individual files; (2) the SFTP server endpoint must be malicious or compromised - the attacker must control the server-side directory listing, not the Airflow client; (3) the Airflow worker process must have filesystem write permissions to paths outside the intended destination (typical for unprivileged worker accounts that can write to home directories, temp paths, or application directories). Deployments that exclusively transfer single files, exclusively use SFTPOperator for uploads (operation=put), or exclusively connect to fully trusted and isolated SFTP servers under organizational control are not at risk. The advisory explicitly states no Airflow account is required, meaning authentication into Airflow itself does not limit exploitation - the attack surface is entirely server-side. |
| Impact | No CVSS vector or score was provided in the source data - severity is described only as 'moderate' in the advisory. EPSS, KEV status, and POC availability are all absent from the provided intelligence. Real-world risk is deployment-context-dependent: organizations connecting Airflow to fully trusted, internally controlled SFTP servers are at minimal practical risk, while deployments ingesting data from third-party or externally managed SFTP servers face meaningful exposure, since the attacker's foothold is server-side rather than requiring any Airflow account. Arbitrary file write on the Airflow worker host could enable privilege escalation or persistent access if the written path lands in a sensitive location (cron directory, authorized_keys, Python site-packages, etc.). The 'moderate' classification is plausible given the high attack complexity prerequisite of controlling the SFTP server, though the integrity impact potential is significant once that prerequisite is met. EPSS data is missing - exploitation probability cannot be quantified from available sources. |
| Exploit ScenarioDerived | An attacker who operates or has compromised an SFTP server that an Airflow DAG connects to crafts directory-entry names containing path traversal sequences (e.g., '../../.ssh/authorized_keys' or '../../etc/cron.d/backdoor'). When the scheduled DAG runs SFTPOperator(operation=get) to retrieve a directory, Airflow builds the local write path by concatenating the destination directory with the server-supplied name without sanitization, causing the file content controlled by the attacker to land at the traversal-resolved path on the Airflow worker host. Depending on the Airflow worker's filesystem permissions, this could enable persistent access or privilege escalation. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 16, 2026
Path traversal in Apache Airflow SFTP provider (apache-airflow-providers-sftp before 5.8.1) allows a malicious or compromised remote SFTP server to write files outside the configured local destination directory on the Airflow worker host. The root cause is that SFTPHook.retrieve_directory does not sanitize server-supplied directory-entry names before constructing local file paths, enabling traversal sequences to escape the intended destination. No exploit code has been publicly identified at time of analysis, but the attack requires no Airflow credentials - any deployment that downloads directories from an untrusted SFTP server is in scope.
RemediationAI
Upgrade the apache-airflow-providers-sftp package to version 5.8.1 or later; this is the vendor-confirmed fix version stated in the oss-security advisory (https://seclists.org/oss-sec/2026/q2/941). The upstream fix is tracked in GitHub pull request #67985 (https://github.com/apache/airflow/pull/67985). If immediate upgrade is not feasible, a targeted compensating control is to avoid using SFTPOperator with operation=get against any SFTP server not under full organizational control - restrict DAGs to single-file transfers (operation=get on individual files) rather than directory downloads, as the path traversal is specific to the directory retrieval code path. Alternatively, restrict SFTP server endpoints to a known-good allowlist at the network layer and ensure the SFTP servers themselves are hardened against compromise. Note that the workarounds involve workflow redesign and do not patch the underlying sanitization flaw; upgrade to 5.8.1 is the definitive fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the SFTPHook.retrieve_directory method (also exposed via SFTPOperator with operation=get) within the apache-airflow-providers-sftp package. When Airflow retrieves a remote directory, it iterates over filenames returned by the SFTP server and constructs local destination paths by joining the configured base directory with the server-supplied entry names. Without stripping path traversal sequences such as '../' or absolute path prefixes from server-controlled filenames, an attacker-controlled server can dictate write locations anywhere on the host filesystem. The root cause class is path traversal (CWE-22), with the trust boundary violation being that the code treats server-supplied filenames as safe relative identifiers when they can contain directory separators. No CPE string was provided in the source data, but the affected package is the PyPI package apache-airflow-providers-sftp, versions prior to 5.8.1.
Know when Apache Airflow Providers Sftp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Network vector because the attack originates from a remote SFTP server; AC:H because attacker must control or compromise that server; S:C because file writes escape the intended destination scope; C:N as no data exfiltration is described.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
1Description PRE-NVD
Articles & Coverage 1
Executive ViewAI
Apache Airflow SFTP provider (versions before 5.8.1) contains a critical path traversal vulnerability that allows malicious or compromised remote SFTP servers to write arbitrary files on Airflow worker systems. This directly threatens the integrity of Airflow infrastructure and any data processed by affected workers. Organizations using Airflow with SFTP connectors face immediate exploitation risk with no vendor patch currently available.
No vendor-released patch identified at time of analysis. Implement: (1) Network segmentation-restrict outbound SFTP connections from Airflow workers to pre-approved internal servers only; (2) File system hardening-apply restrictive permissions on worker directories to contain blast radius; (3) SFTP server validation-verify server identity and certificates before enabling connections; (4) Detection-deploy file system integrity monitoring and audit logging to detect unauthorized file writes; (5) Operational risk reduction-disable SFTP provider entirely if not actively used.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-37520
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB