{"id":"CVE-2022-40127","state":"PUBLISHED","title":"Apache Airflow <2.4.0 has an RCE in a bash example","description":"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.","publishedAt":"2022-11-14T00:00:00.000Z","updatedAt":"2025-04-30T18:58:45.160Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache Airflow"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Airflow","versions":[{"version":"Apache Airflow","status":"affected","lessThan":"2.4.0","versionType":"custom"}]}],"references":["https://github.com/apache/airflow/pull/25960","https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy","http://www.openwall.com/lists/oss-security/2022/11/14/2"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T19:50:35.280Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/40xxx/CVE-2022-40127.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-40127","state":"PUBLISHED","datePublished":"2022-11-14T00:00:00.000Z","dateUpdated":"2025-04-30T18:58:45.160Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2022-09-06T00:00:00.000Z"},"containers":{"cna":{"title":"Apache Airflow <2.4.0 has an RCE in a bash example","descriptions":[{"lang":"en","value":"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":[{"vendor":"Apache Software Foundation","product":"Apache Airflow","versions":[{"version":"Apache Airflow","status":"affected","lessThan":"2.4.0","versionType":"custom"}]}],"references":[{"url":"https://github.com/apache/airflow/pull/25960"},{"url":"https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy"},{"url":"http://www.openwall.com/lists/oss-security/2022/11/14/2","name":"[oss-security] 20221113 CVE-2022-40127: RCE in Apache Airflow <2.4.0 bash example","tags":["mailing-list"]}],"metrics":[{"other":{"type":"unknown","content":{"other":"low"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2022-11-14T00:00:00.000Z"},"credits":[{"lang":"en","value":"Apache Airflow PMC would like to thank L3yx of Syclover Security Team."}],"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"Do not enable example dags on systems that should not allow UI user to execute an arbitrary command."}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/apache/airflow/pull/25960","tags":["x_transferred"]},{"url":"https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/14/2","name":"[oss-security] 20221113 CVE-2022-40127: RCE in Apache Airflow <2.4.0 bash example","tags":["mailing-list","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T12:14:39.589Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.8,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-04-30T18:58:19.200830Z","id":"CVE-2022-40127","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-30T18:58:45.160Z"}}]}}}