Apache Airflow SSH provider, Apache Airflow SFTP provider: SSH hook disables host-key verification by default
Apache Software Foundation Apache Airflow SSH provider · Apache Software Foundation Apache Airflow SFTP provider
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Airflow SSH provider |
| No fix yet |
| Apache Software Foundation Apache Airflow SFTP provider |
| No fix yet |
Original description
The Apache Airflow SSH provider hook disables SSH host-key verification by default: unless `host_key` is configured or `no_host_key_check` is explicitly set to false, it accepts any server key. This affects SSH and SFTP connections that rely on the default. An attacker in a machine-in-the-middle position between the worker and the SSH or SFTP server can impersonate the server and capture the credentials or data a task sends.