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

Atlassian Bitbucket Server and Data Center 命令注入(CVE-2022-36804)

CVE-2022-36804 别名:GHSA-VCM2-J8F4-M7FJ
CVSS 8.8 / 3.1 EPSS 99.0% CISA KEV 在野利用 公开 PoC · 18 Nuclei 模板
综合风险89/ 100
CVSS8.8高危
EPSS99.0%30 天利用概率
机构收录时间2022-08-25更新 2026-11-29

研判简报

概述

Atlassian Bitbucket Server and Data Center 的多个 API 端点存在命令注入漏洞。攻击者只需对公开仓库有访问权限,或对私有仓库有读权限,即可通过构造恶意 HTTP 请求执行任意代码。该漏洞影响 7.0.0 至 8.3.0 的广泛版本区间,且已有公开 PoC、Exploit-DB 条目、Metasploit 模块与 Nuclei 模板,利用门槛低。任何对外暴露 Bitbucket 实例的运维与安全团队都应优先关注。

严重性

官方记录 CVSS 3.1 为 8.8(AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H),综合风险分 88.99/100;EPSS 30 天利用概率 99.0%(百分位 99.9%,日期 2026-11-24)。攻击面为面向公众的 Bitbucket Web/API 端点,攻击者仅需低权限即可触发。

利用状态

CISA KEV 已收录(2022-09-30),要求动作「Apply updates per vendor instructions.」,期限 2022-10-21;CISA SSVC:automatable=no / exploitation=active / technical_impact=total。已有公开 Nuclei 检测模板(http/cves/2022/CVE-2022-36804.yaml)、Exploit-DB/公开 PoC 18 条,并存在 Metasploit 模块。核查日期 2026-11-24。材料未给出勒索软件关联信息。

受影响产品

Bitbucket Server 与 Bitbucket Data Center:7.0.0 起至 7.6.17 之前、7.7.0 起至 7.17.10 之前、7.18.0 起至 7.21.4 之前、8.0.0 起至 8.0.3 之前、8.1.0 起至 8.1.3 之前、8.2.0 起至 8.2.2 之前、8.3.0 起至 8.3.1 之前。参考材料(BSERV-13438)称 7.0.0 至 8.3.0(含)均受影响,并称 6.10.17 之后发布的版本亦受影响;与官方结构化版本区间存在表述出入,以官方记录为准。若部署了 Bitbucket Mesh 节点,需同步更新至包含修复的对应 Mesh 版本。

修复版本

官方修复版本:Bitbucket Server/Data Center 7.6.17、7.17.10、7.21.4、8.0.3、8.1.3、8.2.2、8.3.1(结构化提取另含 unspecified 条目)。Bitbucket Mesh 的对应修复版本材料未给出具体编号,仅说明需按兼容性矩阵更新。

缓解措施

无法立即升级时:限制 Bitbucket 实例的公网暴露,仅允许受控网络访问;收敛仓库可见性与读权限,减少可触发漏洞的低权限账户;在边界部署针对 /rest/api/latest/projects/.../archive 异常参数的检测与阻断;启用应用层监控与命令执行告警。材料未给出厂商官方临时缓解方案。

响应步骤

  1. 资产盘点:识别所有 Bitbucket Server/Data Center 实例及版本,确认是否落在受影响区间,并检查是否部署 Bitbucket Mesh 节点。
  2. 优先升级至对应修复版本(7.6.17、7.17.10、7.21.4、8.0.3、8.1.3、8.2.2、8.3.1),Mesh 节点同步更新。
  3. 排查利用迹象:检索 Nuclei 模板匹配特征(com.atlassian.bitbucket.scm.CommandFailedException、uid=.*(...) 回显)及 archive 端点异常请求日志。
  4. 权限审计:复核公开仓库与私有仓库读权限授予情况,清理不必要账户。
  5. 网络收敛:将管理/API 端点移出公网直连,加入 WAF/IPS 规则拦截恶意 --exec、%00 注入参数。
  6. 持续监控:结合 KEV 状态与 EPSS 高概率,保持补丁与检测规则更新,并留存核查记录。

参考来源

  1. https://jira.atlassian.com/browse/BSERV-13438kev,x_transferred,advisory,euvd
  2. https://nvd.nist.gov/vuln/detail/CVE-2022-36804kev
  3. https://www.exploit-db.com/exploits/51040exploit,exploitdb
  4. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-36804.yamlexploit,nuclei
  5. http://packetstormsecurity.com/files/168470/Bitbucket-Git-Command-Injection.htmlx_transferred,advisory,euvd
  6. http://packetstormsecurity.com/files/171453/Bitbucket-7.0.0-Remote-Command-Execution.htmlx_transferred,advisory,euvd
  7. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-36804government-resource
  8. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_linux/http/bitbucket_git_cmd_injectionexploit,metasploit
  9. https://euvd.enisa.europa.eu/enisa/EUVD-2022-39504kev
  10. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev
  11. https://web.archive.org/web/20230318134256/https://unit42.paloaltonetworks.com/network-security-trends-aug-oct-2022/kev
  12. https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/honeypot-recon-enterprise-applications-honeypot-unveiling-findings-from-six-worldwide-locations/kev
  13. https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-36804kev
  14. https://app.crowdsec.net/cti/cve-explorer/CVE-2022-36804kev
  15. https://www.acn.gov.it/portale/w/impiego-di-agenti-di-ia-in-campagne-di-compromissione-automatizzatekev
  16. https://vulncheck.com/xdb/8a763ff2ccf9exploit,vulncheck_xdb