CVE-2026-30898

Apache Airflow: Bad example of BashOperator shell injection via dag_run.conf

Published Apr 18, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
An example of BashOperator in Airflow documentation suggested a way of passing dag_run.conf in the way that could cause unsanitized user input to be used to escalate privileges of UI user to allow execute code on worker. Users should review if any of their own DAGs have adopted this incorrect advice.

Analysis

AI-generated

Technical impact

Based on the description, an example in the Apache Airflow documentation shows that passing user‑provided dag_run.conf values directly into a BashOperator can cause unsanitized input to be executed as shell commands. The vulnerability is a classic command injection scenario (CWE‑77). If successfully exploited, an attacker could run arbitrary code on the worker that executes the DAG, effectively gaining remote code execution privileges on that host.

Affected Systems

All Apache Airflow installations that have adopted the documented pattern for passing dag_run.conf values to the BashOperator are potentially affected. No specific product version was listed in the advisory, so the risk applies broadly to deployments that follow the insecure pattern.

Risk and Exploitability

The likely attack vector is through the Airflow web UI or API by supplying crafted dag_run.conf data for a DAG that uses the BashOperator. Because the conf data is concatenated directly into the shell command, a single malicious entry can execute arbitrary commands with the privileges of the worker process. The CVSS score is 8.8, indicating high severity. EPSS is reported as <1%, indicating a low exploitation probability, and the issue is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Review all DAGs that use BashOperator and verify whether dag_run.conf values are directly passed to the shell command.
  • Sanitise or escape all dag_run.conf inputs before they reach the BashOperator, or use safe parameterisation alternatives such as templating or argument lists.
  • Restrict or disable the ability for untrusted users to submit dag_run.conf through the UI for DAGs that run with elevated privileges.
  • Check for and apply any newer Apache Airflow releases that address this issue, even if the advisory does not list an explicit patch.

Generated by OpenCVE AI on April 20, 2026 at 18:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
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
Vendors & Products Apache
Apache airflow
Type Values Removed Values Added
Description An example of BashOperator in Airflow documentation suggested a way of passing dag_run.conf in the way that could cause unsanitized user input to be used to escalate privileges of UI user to allow execute code on worker. Users should review if any of their own DAGs have adopted this incorrect advice.
Title Apache Airflow: Bad example of BashOperator shell injection via dag_run.conf
Weaknesses CWE-77
References
Weaknesses
  • CWE-77

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

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 3, 2026, 6:53 AM
Reserved
Mar 6, 2026, 4:58 PM
Status
Analyzed
Published
Apr 18, 2026, 7:16 AM
Modified
Nov 3, 2026, 7:19 AM