Horizon Alert
Summary of the vulnerability and why it matters
A path traversal vulnerability exists in the SFTP provider, specifically when downloading directories from an SFTP server. This allows a malicious or compromised SFTP server to write files outside the intended local directory, even without requiring an Airflow account. The main concern is confirming relevance and exposure, as the attack surface involves deployments downloading directories from untrusted SFTP servers.
- Malicious SFTP servers can write files anywhere.
- Confirms that your organization uses this specific technology.
- Verify if your organization downloads from untrusted SFTP servers.
Attack Path
How an attacker could exploit the issue
An attacker could exploit this vulnerability by setting up a malicious SFTP server. When an Airflow deployment connects to this compromised server to download a directory, the attacker can send specially crafted directory names. These names trick the SFTP provider into writing files to locations outside the intended destination on the Airflow system, potentially overwriting critical files or gaining unauthorized access.
- No Airflow account needed.
- Malicious SFTP server tricks client.
- Unauthorized file writes possible.
Live Threat
Current exploitation, exposure, and threat context
A malicious or compromised SFTP server could trick a vulnerable deployment into writing files outside its designated local directory. This could affect any deployment that downloads directories from an untrusted SFTP server, as no authentication is required to initiate the attack.
- System files or sensitive data.
- Crafted directory names bypass limits.
- Unauthorized file writes to system.
Operational Fix
Recommended remediation, mitigation, and detection steps
Real-world action requires identifying which teams manage Airflow deployments and their SFTP integrations. Initially, teams must locate all instances of the affected SFTP provider, confirm their exposure to untrusted SFTP servers, and determine business criticality. Subsequently, accountable owners should be identified to plan remediation, prioritizing risk reduction for the most critical and exposed systems.
- Ownership: Platform or application owners.
- Verify first: Unrusted SFTP server connections.
- Action: Plan risk-based remediation.