cvelo
P2 · HighCVSS 9.8EPSS 0.9%

Apache Airflow Standard provider, Apache Airflow CNCF Kubernetes provider, Apache Airflow Common SQL provider, Apache Airflow Common Ai provider: Code execution on the worker via Jinja in TaskFlow decorator arguments

  • CVE-2026-120353
  • GHSA-rghf-2qx4-h6p2
  • EUVD-2026-136850

Description

The Apache Airflow TaskFlow decorators @task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd and the common.ai decorators (@task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis, @task.llm_schema_compare) rendered Jinja templates a second time after the task runner had already rendered them, so any value copied into env, op_args, op_kwargs or the returned prompt, command or SQL was evaluated as a template on the worker. An attacker who can only trigger a Dag run (for example a user with trigger permission supplying run conf), or who controls text that a Dag passes into one of these decorators as an argument or prompt (for example a ticket or a downloaded document), could run arbitrary commands on the worker and read connection passwords and Variables, in any deployment that uses an affected decorator in a Dag that passes such input through env, parameters or prompt. Users are recommended to upgrade apache-airflow-providers-standard to 1.22.0, apache-airflow-providers-cncf-kubernetes to 11.0.0, apache-airflow-providers-common-sql to 3.0.0 and apache-airflow-providers-common-ai to 1.2.0 or later.

Text from the CVE.org record.

Recommendation

  • Apache Software Foundation Apache Airflow CNCF Kubernetes provider

    • If you run a version from 10.5.0 to before 11.0.0update to 11.0.0 or laterMajor version change: expect breaking changes
  • Apache Software Foundation Apache Airflow Common Ai provider

    • If you run a version from 0.1.0 to before 1.2.0update to 1.2.0 or laterMajor version change: expect breaking changes
  • Apache Software Foundation Apache Airflow Common SQL provider

    • If you run a version from 1.32.0 to before 3.0.0update to 3.0.0 or laterMajor version change: expect breaking changes
  • Apache Software Foundation Apache Airflow Standard provider

    • If you run a version from 0.3.0 to before 1.22.0update to 1.22.0 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Apache Software Foundation Apache Airflow CNCF Kubernetes provider

    Affected versionsFixed in
    from 10.5.0 to before 11.0.011.0.0
  • Apache Software Foundation Apache Airflow Common Ai provider

    Affected versionsFixed in
    from 0.1.0 to before 1.2.01.2.0
  • Apache Software Foundation Apache Airflow Common SQL provider

    Affected versionsFixed in
    from 1.32.0 to before 3.0.03.0.0
  • Apache Software Foundation Apache Airflow Standard provider

    Affected versionsFixed in
    from 0.3.0 to before 1.22.01.22.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.