{"schemaVersion":3,"id":"CVE-2024-39877","aliases":["GHSA-g5hv-r743-v8pm","BIT-airflow-2024-39877","PYSEC-2024-190","CGA-cj2c-wrj6-g7fc","CGA-cxcg-jc96-pwjp","CGA-qx9m-4fx3-346c","CGA-wwfp-8778-gv4f"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-07-17T07:54:24.338Z","modified":"2024-09-13T17:05:04.979Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01726,"percentile":0.7721,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01726},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01726,"percentile":0.7721}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01726,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01726,"percentile":0.7721}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-277","name":"Insecure Inherited Permissions","description":"A product defines a set of insecure permissions that are inherited by objects that are created by the program.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/277.html"}],"affected":[{"vendor":"apache software foundation","product":"apache airflow","name":"Apache Airflow","label":"apache airflow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.4.0, < 2.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.4.0, < 2.9.3","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_airflow"},{"vendor":"apache","product":"airflow","name":"Airflow","label":"airflow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.4.0, < 2.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.4.0, < 2.9.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-airflow","label":"Apache Airflow","category":"framework"}},"hubHref":"/vendor/apache/airflow"},{"vendor":"chainguard","product":"airflow","name":"airflow","label":"airflow","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/airflow","purlType":"apk","versions":[{"text":"< 2.9.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.3-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"airflow-bitnami-compat","name":"airflow-bitnami-compat","label":"airflow-bitnami-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/airflow-bitnami-compat","purlType":"apk","versions":[{"text":"< 2.9.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.3-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"airflow","name":"airflow","label":"airflow","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/airflow","purlType":"apk","versions":[{"text":"< 2.9.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.3-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"airflow-bitnami-compat","name":"airflow-bitnami-compat","label":"airflow-bitnami-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/airflow-bitnami-compat","purlType":"apk","versions":[{"text":"< 2.9.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.3-r0","eol":null,"hubHref":null},{"vendor":"PyPI","product":"apache-airflow","name":"apache-airflow","label":"apache-airflow","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/apache-airflow","purlType":"pypi","versions":[{"text":"≥ 2.4.0, < 2.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.4.0, < 2.9.3","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/apache/airflow/pull/40522","label":"github.com/apache/airflow/pull/40522","hostname":"github.com","tags":["Patch","WEB","FIX","REPORT","Issue Tracking"]},{"url":"https://lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1","label":"lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","ARTICLE","Advisory","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/16/7","label":"www.openwall.com/lists/oss-security/2024/07/16/7","hostname":"www.openwall.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39877","label":"nvd.nist.gov/vuln/detail/CVE-2024-39877","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/airflow/commit/8159f6e24704f5e0e3b3217cf79ecf5083dce531","label":"github.com/apache/airflow/commit/8159f6e24704f5e0e3b3217cf79ecf5083dce531","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/airflow","label":"github.com/apache/airflow","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-190.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-190.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-g5hv-r743-v8pm","label":"github.com/advisories/GHSA-g5hv-r743-v8pm","hostname":"github.com","tags":["Advisory"]},{"url":"https://pypi.python.org","label":"pypi.python.org","hostname":"pypi.python.org","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39877.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39877.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-7MQ4-P53V-JCM2","CGA-H5GV-QMMR-9R2W"]},"timeline":[{"kind":"published","date":"2024-07-17T07:54:24.338Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-13T17:05:04.979Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:54:16.227Z","stale":false,"partial":false}}