Apache Airflow 2 RCE via log template history (pre2.11.1, 2.11.1+)
CVE-2024-56373 Published on February 24, 2026

Apache Airflow: SSTI to Code Execution in Airflow through Shared DB Information
DAG Author (who already has quite a lot of permissions) could manipulate database of Airflow 2 in the way to execute arbitrary code in the web-server context, which they should normally not be able to do, leading to potentially remote code execution in the context of web-server (server-side) as a result of a user viewing historical task information. The functionality responsible for that (log template history) has been disabled by default in 2.11.1 and users should upgrade to Airflow 3 if they want to continue to use log template history. They can also manually modify historical log file names if they want to see historical logs that were generated before the last log template change.

Vendor Advisory NVD

Weakness Type

What is a Code Injection Vulnerability?

The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

CVE-2024-56373 has been classified to as a Code Injection vulnerability or weakness.


Products Associated with CVE-2024-56373

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-56373 are published in Apache AirFlow:

 

Affected Versions

Apache Software Foundation Apache Airflow: