# CVE-2024-39877: Apache Airflow: DAG Author Code Execution possibility in airflow-scheduler

Status: published. Published: 2024-07-17. Updated: 2026-11-03.

Apache Airflow 2.4.0, and versions before 2.9.3, has a vulnerability that allows authenticated DAG authors to craft a doc_md parameter in a way that could execute arbitrary code in the scheduler context, which should be forbidden according to the Airflow Security model. Users should upgrade to version 2.9.3 or later which has removed the vulnerability.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: apache) — https://github.com/apache/airflow/pull/40522
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: ADP: CVE) — https://github.com/apache/airflow/pull/40522
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: security@apache.org) — https://github.com/apache/airflow/pull/40522
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://github.com/apache/airflow/pull/40522

## Affected products and versions

- Apache Software Foundation / Apache Airflow (apache-airflow): ≥ 2.4.0; < 2.9.3 (affected, semver). Source: CNA: apache
- apache / airflow: ≥ 2.4.0; < 2.9.3 (affected, semver). Source: ADP: CISA-ADP

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "2.9.3",
            "versionStartIncluding": "2.4.0",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 8.8 (high); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: ADP: CISA-ADP

- CVSS 3.1: 8.8 (high); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: nvd@nist.gov

- CVSS 3.1: 8.8 (high); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: 134c704f-9b21-4f2e-91b3-4a467353bcc0

- CISA KEV: No listing in collected sources

- EPSS: 1.73% as of 2026-11-03; percentile 77.58%

- SSVC: exploitation poc; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-94, CWE-277

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/apache/airflow/pull/40522 (CNA: apache; patch)

- https://lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1 (CNA: apache; vendor-advisory)

- https://github.com/apache/airflow/pull/40522 (ADP: CVE; patch, x_transferred)

- https://lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1 (ADP: CVE; vendor-advisory, x_transferred)

- http://www.openwall.com/lists/oss-security/2024/07/16/7 (ADP: CVE)

- https://github.com/apache/airflow/pull/40522 (security@apache.org; Issue Tracking, Patch)

- https://lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1 (security@apache.org; Mailing List)

- http://www.openwall.com/lists/oss-security/2024/07/16/7 (af854a3a-2127-422b-91ae-364da2661108)

- https://github.com/apache/airflow/pull/40522 (af854a3a-2127-422b-91ae-364da2661108; Issue Tracking, Patch)

- https://lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1 (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

## Provenance

- CNA: apache: https://www.cve.org/CVERecord?id=CVE-2024-39877; retrieved 2026-11-03; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-39877; retrieved 2026-11-04; source updated 2026-11-03

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-39877; retrieved 2026-11-03; source updated Not reported

Revision: d178848d77df99ad90609cf75f6f5c07c4a20587dfa6a93f0bbef00081262d80

Canonical: https://y2.dev/cve/CVE-2024-39877

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.