Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. apache-airflow
  4. ›
  5. CVE-2022-40127

CVE-2022-40127: Apache Airflow vulnerable to OS Command Injection via example DAGs

November 14, 2022 (updated May 1, 2025)

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 versions prior to 2.4.0.

References

  • github.com/advisories/GHSA-6pw3-8h9w-32gc
  • github.com/apache/airflow
  • github.com/apache/airflow/commit/372e699c2d1e11f7087b5340454d0a0a6a56fbf5
  • github.com/apache/airflow/pull/25960
  • github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2022-42982.yaml
  • lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy
  • nvd.nist.gov/vuln/detail/CVE-2022-40127

Code Behaviors & Features

Detect and mitigate CVE-2022-40127 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.4.0

Fixed versions

  • 2.4.0

Solution

Upgrade to version 2.4.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/apache-airflow/CVE-2022-40127.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:59 +0000.