CVE-2026-50203
JSON

9.1critical

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

Severity
9.1critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-qf38-jq28-3ccqPYSEC-2026-218

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.

Affected

Product or packageVersionsReported by
apache-airflow-providers-sftpbefore 5.8.1CVE List
apache-airflow-providers-sftp (PyPI)before 5.8.1GitHub Advisory Database, PyPA Advisory Database
apache apache-airflow-providers-sftpbefore 5.8.1NVD

All scores

CISA-ADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
PyPA Advisory Database9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Un salto de ruta en el proveedor SFTP (’SFTPHook.retrieve_directory’ / ’SFTPOperator(operation=get)’) permitió que un servidor SFTP remoto malicioso o comprometido escribiera archivos fuera del directorio de destino local configurado mediante nombres de entrada de directorio manipulados. No se requiere una cuenta de Airflow; la superficie de ataque es cualquier implementación que descargue directorios de un servidor SFTP no confiable. Actualice ’apache-airflow-providers-sftp’ a 5.8.1 o posterior.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-50203 changed 2026-06-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-qf38-jq28-3ccq changed 2026-09-10CC-BY-4.0
NVDCVE-2026-50203 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-218 changed 2026-07-13CC-BY-4.0