Apache Software Foundation Apache Airflow SSH provider
Apache Airflow SSH provider: SSHRemoteJobOperator: `environment` values are executed as shell on the remote host
In apache-airflow-providers-ssh before 7.0.1, SSHRemoteJobOperator quoted the values of its templated `environment` parameter only once, although they are placed inside an already-quoted wrapper script, so shell syntax such as `$(...)` in a value was executed on the remote SSH host. In a Dag that passes trigger-time input such as `params` or `dag_run.conf` into `environment`, a user who can trigger that Dag but cannot author Dags could run arbitrary commands on the remote host as the SSH connection's user. Users are advised to upgrade apache-airflow-providers-ssh to 7.0.1 or later.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.3.0, < 7.0.1
Fixed in 7.0.1
Mitigation
Upgrade Apache Airflow SSH provider to 7.0.1 or later.
References
- Patch github.com/apache/airflow/pull/74810
- Vendor advisory lists.apache.org/thread/k159xrq1tbgmkvl24j63g12qh0mc…
- Release notes airflow.apache.org/docs/apache-airflow-providers-ssh/7…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.