{"api_version":"1","generated_at":"2026-11-26T20:14:21+00:00","cve":"CVE-2026-120353","urls":{"html":"https://cve.report/CVE-2026-120353","api":"https://cve.report/api/cve/CVE-2026-120353.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-120353","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-120353"},"summary":{"title":"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","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.","state":"PUBLISHED","assigner":"apache","published_at":"2026-11-26 19:17:09","updated_at":"2026-11-26 19:17:09"},"problem_types":["CWE-1336","CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine"],"metrics":[],"references":[{"url":"https://lists.apache.org/thread/6szpozm1htzv0cyn11vc6m3pj8xz97nj","name":"https://lists.apache.org/thread/6szpozm1htzv0cyn11vc6m3pj8xz97nj","refsource":"security@apache.org","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/apache/airflow/pull/76244","name":"https://github.com/apache/airflow/pull/76244","refsource":"security@apache.org","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-120353","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120353","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache Airflow Standard provider","version":"affected 0.3.0 1.22.0 semver","platforms":[]},{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache Airflow CNCF Kubernetes provider","version":"affected 10.5.0 11.0.0 semver","platforms":[]},{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache Airflow Common SQL provider","version":"affected 1.32.0 3.0.0 semver","platforms":[]},{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache Airflow Common Ai provider","version":"affected 0.1.0 1.2.0 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Claude Security Scans","lang":"en"},{"source":"CNA","value":"Sonar","lang":"en"},{"source":"CNA","value":"Jarek Potiuk","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://pypi.python.org","defaultStatus":"unaffected","packageName":"apache-airflow-providers-standard","packageURL":"pkg:pypi/apache-airflow-providers-standard","product":"Apache Airflow Standard provider","vendor":"Apache Software Foundation","versions":[{"lessThan":"1.22.0","status":"affected","version":"0.3.0","versionType":"semver"}]},{"collectionURL":"https://pypi.python.org","defaultStatus":"unaffected","packageName":"apache-airflow-providers-cncf-kubernetes","packageURL":"pkg:pypi/apache-airflow-providers-cncf-kubernetes","product":"Apache Airflow CNCF Kubernetes provider","vendor":"Apache Software Foundation","versions":[{"lessThan":"11.0.0","status":"affected","version":"10.5.0","versionType":"semver"}]},{"collectionURL":"https://pypi.python.org","defaultStatus":"unaffected","packageName":"apache-airflow-providers-common-sql","packageURL":"pkg:pypi/apache-airflow-providers-common-sql","product":"Apache Airflow Common SQL provider","vendor":"Apache Software Foundation","versions":[{"lessThan":"3.0.0","status":"affected","version":"1.32.0","versionType":"semver"}]},{"collectionURL":"https://pypi.python.org","defaultStatus":"unaffected","packageName":"apache-airflow-providers-common-ai","packageURL":"pkg:pypi/apache-airflow-providers-common-ai","product":"Apache Airflow Common Ai provider","vendor":"Apache Software Foundation","versions":[{"lessThan":"1.2.0","status":"affected","version":"0.1.0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"tool","value":"Claude Security Scans"},{"lang":"en","type":"finder","value":"Sonar"},{"lang":"en","type":"remediation developer","value":"Jarek Potiuk"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"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."}],"value":"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."}],"metrics":[{"other":{"content":{"text":"important"},"type":"Textual description of severity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-26T18:30:32.774Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","shortName":"apache"},"references":[{"tags":["patch"],"url":"https://github.com/apache/airflow/pull/76244"},{"tags":["vendor-advisory"],"url":"https://lists.apache.org/thread/6szpozm1htzv0cyn11vc6m3pj8xz97nj"}],"source":{"discovery":"INTERNAL"},"title":"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","x_generator":{"engine":"airflow-s/generate_cve_json.py"}}},"cveMetadata":{"assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","assignerShortName":"apache","cveId":"CVE-2026-120353","datePublished":"2026-11-26T18:30:32.774Z","dateReserved":"2026-11-01T19:59:18.779Z","dateUpdated":"2026-11-26T18:30:32.774Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-26 19:17:09","lastModifiedDate":"2026-11-26 19:17:09","problem_types":["CWE-1336","CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"120353","Ordinal":"1","Title":"Apache Airflow Standard provider, Apache Airflow CNCF Kubernetes","CVE":"CVE-2026-120353","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"120353","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Apache Airflow Standard provider, Apache Airflow CNCF Kubernetes"}]}}}