---
id: CVE-2022-40127
title: >-
  A vulnerability in Example Dags of Apache Airflow allows an attacker with UI
  access who can trigger DAGs, to execute arbitrary commands via manually
  provided run_id parameter
summary: >-
  A vulnerability in Example Dags of Apache Airflow allows an attacker with UI
  access who can trigger DAGs, to execute arbitrary commands via manually
  provided run_id parameter. This issue affects Apache Airflow Apache Airflow
  versions pri…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-94
vendor: apache
product: airflow
affected:
  - airflow < 2.4.0
patched:
  - airflow 2.4.0
published: '2022-11-14'
updated: '2026-11-27'
sourceUpdated: '2026-11-27T13:17:18.470'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-40127'
references:
  - url: 'http://www.openwall.com/lists/oss-security/2022/11/14/2'
    label: security@apache.org
  - url: 'https://github.com/apache/airflow/pull/25960'
    label: security@apache.org
  - url: 'https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2022/11/14/2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/apache/airflow/pull/25960'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - exploit-available
epss: 0.31905
epssPercentile: 0.98706
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/Mr-xn/CVE-2022-40127'
    - 'https://github.com/jakabakos/CVE-2022-40127-Airflow-RCE'
  nuclei:
    - CVE-2022-40127
  checkedAt: '2026-11-27T15:15:11.752Z'
exploitAvailable: true
ingestedAt: '2026-11-27T13:44:44.671Z'
---

## Overview

A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arbitrary commands via manually provided run_id parameter. This issue affects Apache Airflow Apache Airflow versions prior to 2.4.0.

## Affected

- `airflow < 2.4.0`

## Remediation

Upgrade past the affected range:

- `airflow 2.4.0`
