Advisory

GHSA-qf38-jq28-3ccq

Also known as: CVE-2026-50203, PYSEC-2026-218

Summary

Apache Airflow SFTP provider: Path traversal in SFTPHook.retrieve_directory

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-06-17 18:35 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

apache-airflow-providers-sftp

PyPI · All systems

Affected

  • introduced 0, fixed 5.8.1 (ecosystem)

Fixed versions

5.8.1

Fix

  • Fixed version 5.8.1
    pip install --upgrade apache-airflow-providers-sftp==5.8.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences