字号·· | 护眼
漏洞档案 · 高危

Apache Airflow 示例 DAG 远程命令注入(CVE-2020-11978)

CVE-2020-11978 别名:GHSA-RVMQ-4X66-Q7J3、PYSEC-2020-14
CVSS 8.8 / 3.1 EPSS 99.2% CISA KEV 在野利用 公开 PoC · 2 Nuclei 模板
综合风险89/ 100
CVSS8.8高危
EPSS99.2%30 天利用概率
机构收录时间2020-07-16更新 2026-12-01

研判简报

概述

Apache Airflow 1.10.10 及以下版本自带的示例 DAG 中存在远程代码/命令注入问题,任意已认证用户可借此以运行 airflow worker/scheduler 的用户身份执行任意命令(取决于所用 executor)。若配置中已设置 load_examples=False 关闭示例,则不受影响。该漏洞已列入 CISA KEV,且存在公开 PoC 与 Nuclei 模板,利用门槛低。运行旧版 Airflow 且保留示例 DAG 的团队应优先关注。

严重性

CVSS 3.1 评分 8.8(AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H),综合风险分 89.04/100,评级 high。攻击面为对外暴露的 Airflow Web/Experimental API,需已认证会话(参考材料中的 PoC 另结合 CVE-2020-13927 可形成未认证利用链,该组合属参考材料说法)。

利用状态

截至核查日期 2026-11-27:EPSS 30 天利用概率 99.2%(百分位 100.0%);CISA KEV 已收录(收录日期 2022-01-18,要求动作“Apply updates per vendor instructions.”,期限 2022-07-18);已有公开 Nuclei 模板(http/cves/2020/CVE-2020-11978.yaml);Exploit-DB/公开 PoC 共 2 条(含 Exploit-DB 49927);CISA SSVC:automatable=no / exploitation=active / technical_impact=total。勒索软件关联情况材料未给出。

受影响产品

apache:airflow < 1.10.11;Apache Software Foundation:Apache Airflow <= 1.10.10。涉及组件为随版本分发的示例 DAG(PoC 指向 example_trigger_target_dag 的 bash_task)及 Experimental REST API。部署形态材料未给出明确限定;PoC 测试环境为 Docker 镜像 apache/airflow:1.10.10。

修复版本

官方修复版本为 airflow 1.10.11(结构化提取)。升级至该版本即可修复;材料未给出更多补丁细节。

缓解措施

在配置中设置 load_examples=False 并重新初始化 Airflow,或手动删除 example_trigger_target_dag 等示例 DAG;同时为 Experimental API 配置认证(如 [api]auth_backend = airflow.api.auth.backend.deny_all 或启用认证),以阻断参考材料所述的未认证利用链。无法立即升级时应优先完成上述两项。

响应步骤

  1. 盘点 Airflow 实例版本,确认是否存在 <= 1.10.10 的部署及是否加载示例 DAG。
  2. 检查配置项 load_examples 取值,并核查 example_trigger_target_dag 等示例 DAG 是否仍存在、是否被启用。
  3. 检查 Experimental API(/api/experimental/)是否对外可达及其认证配置。
  4. 排查 Web/API 访问日志中对 /api/experimental/dags/example_trigger_target_dag/ 的异常请求与可疑 DAG 触发记录。
  5. 升级至 1.10.11,或在升级前先落实 load_examples=False 与 API 认证两项缓解。
  6. 按 KEV 要求跟踪修复完成情况,并复核对外暴露面。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2020-11978kev
  2. https://www.exploit-db.com/exploits/49927exploit,exploitdb
  3. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-11978.yamlexploit,nuclei
  4. https://lists.apache.org/thread.html/r7255cf0be3566f23a768e2a04b40fb09e52fcd1872695428ba9afe91%40%3Cusers.airflow.apache.org%3Ex_transferred,advisory,euvd,Mailing List,Vendor Advisory
  5. http://packetstormsecurity.com/files/162908/Apache-Airflow-1.10.10-Remote-Code-Execution.htmlx_transferred,advisory,euvd,Exploit,Third Party Advisory,VDB Entry
  6. http://packetstormsecurity.com/files/174764/Apache-Airflow-1.10.10-Remote-Code-Execution.htmlx_transferred,advisory,euvd,Exploit,Third Party Advisory,VDB Entry
  7. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-11978government-resource,Third Party Advisory,US Government Resource
  8. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_linux/http/apache_airflow_dag_rceexploit,metasploit
  9. https://euvd.enisa.europa.eu/enisa/EUVD-2020-0032kev
  10. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev
  11. https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2020-11978kev
  12. https://vulncheck.com/xdb/73630c81bc79exploit,vulncheck_xdb
  13. https://github.com/pberba/CVE-2020-11978poc,github,exploit,poc_github
  14. https://vulncheck.com/xdb/b834c5124a3eexploit,vulncheck_xdb
  15. https://vulncheck.com/kev/cve-2020-11978advisory,vulncheck_kev
  16. https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-0032advisory,euvd