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

GNU Bash 环境变量解析与代码执行(CVE-2014-6277)

CVE-2014-6277 别名:DEBIAN-CVE-2014-6277、GHSA-55CC-H8M2-X3MP
CVSS 10.0 / 2.0 EPSS 64.3% CISA KEV 在野利用 公开 PoC · 3
综合风险85/ 100
CVSS10.0高危
EPSS64.3%30 天利用概率
机构收录时间2014-09-28更新 2026-12-03

研判简报

概述

GNU Bourne-Again Shell(Bash)在 4.3 bash43-026 及之前版本中,由于对 Shellshock 系列漏洞(CVE-2014-6271 与 CVE-2014-7169)的早期修复不完整,导致在解析环境变量中的函数定义时仍存在缺陷。远程攻击者可通过向跨权限边界传递环境变量的服务(如 OpenSSH ForceCommand、Apache mod_cgi/mod_cgid 模块、DHCP 客户端脚本等)注入特制环境变量,触发未初始化内存访问与非信任指针读写,进而实现任意代码执行或拒绝服务。

严重性

输入材料未给出该漏洞的 CVSS 评分与严重性等级。其利用预测概率高达 64.33%(处于全部漏洞前 0.57% 分位),综合风险评分为 44.87。由于 Bash 广泛存在于 Linux/Unix 服务器与嵌入式网络设备中,凡通过 CGI 或自动化脚本暴露的脆弱资产均面临极高远程接管风险。

利用状态

截至核查日期 2026-11-26,该漏洞为已确认在野利用状态,于 2018-03-01 收录至已知被利用漏洞目录,并存在多份公开利用代码,暂无勒索软件利用标记。情报显示其长期被针对路由器及老旧 Linux 服务器的自动化恶意程序扫描利用。

受影响产品

材料未给出结构化的受影响版本清单。根据漏洞描述,受影响产品为 GNU Bash 4.3 bash43-026 及更早版本。

修复版本

材料未给出具体修复版本号。安全运营人员应依据各 Linux 发行版或嵌入式设备厂商的安全公告,将 Bash 升级至完整修复 Shellshock 系列漏洞的受支持版本;对无法更新的孤立旧设备应评估淘汰停用。

缓解措施

在边界 WAF 与 IPS 上启用针对 HTTP 请求头(如 User-Agent、Referer、Cookie)中包含 Bash 函数定义特征的检测与拦截规则。排查并关闭 Web 服务器中不再需要的 CGI 脚本接口,将非交互式系统脚本的默认解释器切换为 dash 等更精简的 Shell,减少暴露面。

响应步骤

  1. 资产清查:在所有 Linux 服务器、容器镜像及网络硬件设备上执行版本核验,识别仍运行老旧 Bash 4.3 早期补丁及之前版本的资产。
  2. 补丁升级:通过包管理器统一更新 bash 软件包,并重点核查长期未更新的嵌入式设备固件。
  3. 攻击排查:检索 Apache/Nginx 访问日志及 DHCP/SSH 认证日志,排查是否存在可疑环境变量函数定义注入请求,并检查主机异常进程与反弹 Shell 痕迹。
  4. 暴露面收敛:清理历史遗留 CGI 脚本,对无法打补丁的老旧设备实施严格网络隔离。

参考来源

  1. https://www.virusbulletin.com/virusbulletin/2018/03/vb2017-paper-router-all-evil-more-just-default-passwords-and-silly-scripts/kev
  2. https://blog.talosintelligence.com/content/files/2025/03/2024YiR-report.pdfkev
  3. https://vulncheck.com/kev/cve-2014-6277advisory,vulncheck_kev
  4. https://www.exploit-db.com/exploits/35081exploit,exploitdb
  5. https://www.exploit-db.com/exploits/34860exploit,exploitdb
  6. https://www.exploit-db.com/exploits/36933exploit,exploitdb
  7. http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004897x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  8. http://www-01.ibm.com/support/docview.wss?uid=swg21685749x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  9. http://marc.info/?l=bugtraq&m=141577137423233&w=2vendor-advisory,x_refsource_HP,vendor-advisory,x_refsource_HP,x_transferred,advi
  10. https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102673&src=securityAlertsx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  11. http://linux.oracle.com/errata/ELSA-2014-3093x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  12. http://marc.info/?l=bugtraq&m=142721162228379&w=2vendor-advisory,x_refsource_HP,vendor-advisory,x_refsource_HP,x_transferred,advi
  13. http://marc.info/?l=bugtraq&m=142358026505815&w=2vendor-advisory,x_refsource_HP,vendor-advisory,x_refsource_HP,x_transferred,advi
  14. http://www-01.ibm.com/support/docview.wss?uid=swg21686479x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  15. http://jvn.jp/en/jp/JVN55667175/index.htmlthird-party-advisory,x_refsource_JVN,third-party-advisory,x_refsource_JVN,x_tran
  16. http://secunia.com/advisories/60433third-party-advisory,x_refsource_SECUNIA,third-party-advisory,x_refsource_SECUNI