Description
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.
Published: 2026-06-17
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A directory listing operation in the Apache Airflow SFTP provider allows a malicious or compromised SFTP server to supply a directory entry with a crafted name that causes Airflow to write a local file outside the configured destination directory. The flaw is triggered when SFTPHook.retrieve_directory or SFTPOperator with an 'get' operation is used. The attack requires only that Airflow connects to the SFTP server; no Airflow user authentication is needed. If exploited, an attacker can overwrite arbitrary files on the host running Airflow, potentially leading to privilege escalation or application compromise. The weakness is a classic directory traversal flaw, listed as CWE-22.

Affected Systems

This vulnerability affects the Apache Airflow SFTP provider bundled with Airflow prior to version 5.8.1. Any deployment that uses the SFTPHook.retrieve_directory or SFTPOperator to download directories from an untrusted SFTP server is susceptible.

Risk and Exploitability

The EPSS score is below 1%, indicating a very low probability of widespread exploitation. The CVSS score of 9.1 categorizes this vulnerability as critical. The vulnerability is not listed in CISA KEV. Nonetheless, the impact is high because file overwrite can occur without authentication. The likely attack vector is a remote SFTP server that the Airflow instance connects to; a compromised or misconfigured server can serve malicious directory names to cause the out‑of‑bounds write. Given the high severity of the potential impact and the fact that any Airflow deployment may be affected, organizations should treat this flaw as a critical security concern despite the low EPSS score.

Generated by OpenCVE AI on June 18, 2026 at 20:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade apache-airflow-providers-sftp to version 5.8.1 or later
  • Restrict your Airflow instances to connect only to trusted SFTP servers, validating server identities
  • Apply network segmentation or firewall rules to limit outbound traffic from Airflow to the SFTP service to those requiring directory retrieval

Generated by OpenCVE AI on June 18, 2026 at 20:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qf38-jq28-3ccq Apache Airflow SFTP provider: Path traversal in SFTPHook.retrieve_directory
History

Thu, 18 Jun 2026 04:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 17 Jun 2026 05:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Apache Airflow SFTP provider: Path traversal in SFTPHook.retrieve_directory allows local file write outside the destination directory via malicious server-supplied directory-entry names
Weaknesses CWE-22
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-06-17T14:56:45.456Z

Reserved: 2026-06-04T00:05:50.170Z

Link: CVE-2026-50203

cve-icon Vulnrichment

Updated: 2026-06-17T01:54:11.793Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-18T20:45:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')