# 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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-06-17T01:47:49.652Z
- Modified: 2026-10-26T11:10:00.157Z
- Also known as: GHSA-qf38-jq28-3ccq, PYSEC-2026-218
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

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

(As written by CVE List.)

## Affected

- apache-airflow-providers-sftp: before 5.8.1
- apache-airflow-providers-sftp (PyPI): before 5.8.1
- apache apache-airflow-providers-sftp: before 5.8.1

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

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

- CVE List: [CVE-2026-50203](https://www.cve.org/CVERecord?id=CVE-2026-50203), CVE Terms of Use, modified 2026-06-17
- GitHub Advisory Database: [GHSA-qf38-jq28-3ccq](https://github.com/advisories/GHSA-qf38-jq28-3ccq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-50203](https://nvd.nist.gov/vuln/detail/CVE-2026-50203), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-218](https://osv.dev/vulnerability/PYSEC-2026-218), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-50203 · Whole record: https://cve.day/CVE-2026-50203.json · Rebuilt by cve.day 2026-11-25T22:59:24.923Z
