Improper Control of Generation of Code ('Code Injection')
CVE-2024-56373
Summary
DAG Author (who already has quite a lot of permissions) could manipulate database of Airflow 2 in versions prior to 2.11.1rc2 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 (RCE) 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.1rc2 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.
- LOW
- NETWORK
- HIGH
- CHANGED
- REQUIRED
- HIGH
- HIGH
- HIGH
CWE-94 - Code Injection
Code injection is a type of vulnerability that allows an attacker to execute arbitrary code. This vulnerability fully compromises the machine and can cause a wide variety of security issues, such as unauthorized access to sensitive information, manipulation of data, denial of service attacks etc. Code injection is different from command injection in the fact that it is limited by the functionality of the injected language (e.g. PHP), as opposed to command injection, which leverages existing code to execute commands, usually within the context of a shell.
References
Advisory Timeline
- Published