CVE-2026-111422

Apache Airflow SSH provider: SSHRemoteJobOperator: `environment` values are executed as shell on the remote host

Published Oct 26, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A flaw in the SSHRemoteJobOperator of Apache Airflow’s SSH provider allows shell syntax within the templated `environment` parameter to be executed on the remote host. Because the operator only quotes the values once, expressions like `$(…)` or backticks are processed by the remote shell. This permits an attacker who can trigger a DAG but does not have permission to modify the DAG code to run arbitrary commands as the SSH user, effectively compromising the remote system.

Affected Systems

The issue exists in all releases of the Apache Airflow SSH provider before version 7.0.1. Any deployment that uses a pre‑7.0.1 provider and accepts user‑supplied `environment` values at trigger time is affected.

Risk and Exploitability

The vulnerability has a CVSS score of 8.8, indicating remote code execution, a very high‑severity impact. EPSS score is < 1%, and the issue is not listed in the CISA KEV catalog. The likely attack vector is user trigger of a DAG that passes unsanitized values into `environment`; the attacker does not need to modify DAG code, only trigger permission. Because the flaw involves execution of shell commands on a remote host, the exploit would allow full lateral movement or system compromise if the SSH user is privileged.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Apache Airflow SSH provider to version 7.0.1 or later as provided by the vendor.
  • If upgrading is temporarily infeasible, restrict the ability to trigger Dags that forward user input into the `environment` parameter and sanitize or remove any such values before they are passed to the operator.
  • As a temporary mitigation, configure the Airflow deployment to use a restricted set of environment variables or enforce hard‑coded values for critical Dags that interact with SSH.

Generated by OpenCVE AI on October 29, 2026 at 12:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache airflow Ssh Provider
Vendors & Products Apache
Apache airflow Ssh Provider
Type Values Removed Values Added
Description 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.
Title Apache Airflow SSH provider: SSHRemoteJobOperator: `environment` values are executed as shell on the remote host
Weaknesses CWE-78
References
Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Oct 29, 2026, 10:38 AM
Reserved
Oct 16, 2026, 2:30 AM
Status
Awaiting Analysis
Published
Oct 27, 2026, 12:17 AM
Modified
Oct 29, 2026, 11:17 AM