Advisory

PYSEC-2026-218

Also known as: CVE-2026-50203, GHSA-qf38-jq28-3ccq

Summary

The record has no summary.

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: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Dates

Published
2026-06-17 13:20 UTC
Modified
2026-07-13 16:45 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: PyPA Advisory Database · CC BY 4.0

Sources & licences