Skip to main content

Apache Airflow SFTP Provider CVE-2026-50203

| EUVDEUVD-2026-37520 CRITICAL
Path Traversal (CWE-22)
9.1
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operate or compromise target SFTP server
  2. Delivery
    Craft directory entries with traversal sequences
  3. Exploit
    Airflow DAG triggers SFTPOperator directory download
  4. Execution
    Hook constructs unsanitized local path
  5. Persist
    Attacker-controlled file written outside destination
  6. Impact
    Leverage 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Apache Airflow SFTP provider 0 <5.8.1

Affected Packages

pypi apache-airflow-providers-sftp fix: 5.8.1
euvd apache_airflow_sftp_provider fix: 5.8.1

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

Vendor (CNA) PRIMARY 9.1 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Jun 17, 2026 - 03:01 EUVD

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 88% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy