---
id: CVE-2024-56373
aliases:
  - GHSA-r837-hpv7-pc2f
  - BIT-airflow-2024-56373
  - PYSEC-2026-2355
title: >-
  Apache Airflow vulnerable to Code Injection in the web-server context via
  LogTemplate table
summary: >-
  Apache Airflow vulnerable to Code Injection in the web-server context via
  LogTemplate table
severity: high
cvss: 8.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H'
vendor: apache-airflow
product: apache-airflow
ecosystem: pip
affected:
  - apache-airflow < 2.11.1
patched:
  - apache-airflow 2.11.1
published: '2026-02-24'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:35.740290612Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-r837-hpv7-pc2f'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-56373'
  - url: 'https://github.com/apache/airflow/pull/61880'
  - url: 'https://github.com/apache/airflow'
  - url: 'https://lists.apache.org/thread/2vrmrhcht6g7cp5yjxpnrk2wtrncm6cy'
  - url: 'http://www.openwall.com/lists/oss-security/2026/02/23/3'
tags:
  - osv
  - pip
epss: 0.01062
epssPercentile: 0.63134
ingestedAt: '2026-07-13T18:58:02.565Z'
---

## Overview

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.

## Affected packages

- `apache-airflow < 2.11.1`

## Remediation

Upgrade to a patched release:

- `apache-airflow 2.11.1`
