CVE-2026-111422: 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 dagrun.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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
apache-airflow-providers-sshto a version that resolves this vulnerability.Fixed in 7.0.1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments are exposed when a DAG uses SSHRemoteJobOperator and passes trigger-time-controlled data, such as params or dag_run.conf, into its templated environment parameter. The attacker must be able to trigger that DAG; they do not need permission to author DAGs.
What access does successful exploitation provide?
An attacker can execute arbitrary commands on the remote SSH host as the user configured for the SSH connection used by the operator.
Are all uses of SSHRemoteJobOperator affected?
The described exploitation path requires untrusted trigger-time input to reach the operator's environment parameter. The issue affects apache-airflow-providers-ssh versions before 7.0.1.
What is the recommended remediation?
Upgrade apache-airflow-providers-ssh to version 7.0.1 or later. Until an upgrade is possible, avoid passing trigger-time input into SSHRemoteJobOperator environment values and restrict who can trigger affected DAGs.