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 package | Versions | Reported by |
|---|---|---|
| apache-airflow-providers-sftp | before 5.8.1 | CVE List |
| apache-airflow-providers-sftp (PyPI) | before 5.8.1 | GitHub Advisory Database, PyPA Advisory Database |
| apache apache-airflow-providers-sftp | before 5.8.1 | NVD |
All scores
| CISA-ADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| PyPA Advisory Database | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
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
| https://github.com/apache/airflow/pull/67985 | fix, issue-tracking, patch, web | |
| https://lists.apache.org/thread/7f4b284oh44c1n95oq8mh1qc7y1lr9dx | advisory, mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2026/06/16/3 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-50203 | advisory | |
| https://github.com/apache/airflow | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow-providers-sftp/PYSEC-2026-218.yaml | web | |
| https://github.com/advisories/GHSA-qf38-jq28-3ccq | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-50203 changed 2026-06-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qf38-jq28-3ccq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-50203 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-218 changed 2026-07-13 | CC-BY-4.0 |