---
id: CVE-2026-50203
aliases:
  - GHSA-qf38-jq28-3ccq
  - PYSEC-2026-218
title: 'Apache Airflow SFTP provider: Path traversal in SFTPHook.retrieve_directory'
summary: 'Apache Airflow SFTP provider: Path traversal in SFTPHook.retrieve_directory'
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
vendor: apache-airflow-providers-sftp
product: apache-airflow-providers-sftp
ecosystem: pip
affected:
  - apache-airflow-providers-sftp < 5.8.1
patched:
  - apache-airflow-providers-sftp 5.8.1
published: '2026-06-17'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:50.316659856Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-qf38-jq28-3ccq'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-50203'
  - url: 'https://github.com/apache/airflow/pull/67985'
  - url: 'https://github.com/apache/airflow'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow-providers-sftp/PYSEC-2026-218.yaml
  - url: 'https://lists.apache.org/thread/7f4b284oh44c1n95oq8mh1qc7y1lr9dx'
  - url: 'http://www.openwall.com/lists/oss-security/2026/06/16/3'
  - url: 'https://github.com/advisories/GHSA-qf38-jq28-3ccq'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00879
epssPercentile: 0.57301
cwe:
  - CWE-22
ingestedAt: '2026-06-29T14:31:47.209Z'
---

## Overview

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.

## Affected packages

- `apache-airflow-providers-sftp < 5.8.1`

## Remediation

Upgrade to a patched release:

- `apache-airflow-providers-sftp 5.8.1`
