字号·· | 护眼
漏洞档案 · 严重

JetBrains TeamCity 认证绕过导致 RCE(CVE-2023-42793)

CVE-2023-42793 别名:GHSA-W796-2GQ9-7JM8
CVSS 9.8 / 3.1 EPSS 86.0% CISA KEV 在野利用 勒索软件利用 公开 PoC · 17 Nuclei 模板
综合风险100/ 100
CVSS9.8严重
EPSS86.0%30 天利用概率
机构收录时间2023-09-20更新 2026-11-28

研判简报

概述

JetBrains TeamCity On-Premises 存在认证绕过漏洞,未认证攻击者仅凭 HTTP(S) 访问即可绕过认证,进而实现远程代码执行并获取服务器管理权限。该漏洞 CVSS 9.8、CISA KEV 已收录且存在已知勒索软件利用,属于应优先处置的面向公众应用风险。使用 TeamCity On-Premises 的 CI/CD 运维与安全团队应重点关注;TeamCity Cloud 不受影响。

严重性

CVSS 3.1 评分 9.8(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H),综合风险分 100.0/100;EPSS 30 天利用概率 100.0%(百分位 100.0%,2026-11-24)。攻击面为可被 HTTP(S) 访问的 TeamCity Server,CISA SSVC 判定 automatable=yes、exploitation=active、technical_impact=total。

利用状态

截至核查日期 2026-11-24:CISA KEV 已收录(2023-10-04),已知遭勒索软件利用;存在公开 Nuclei 检测模板(http/cves/2023/CVE-2023-42793.yaml)及 Exploit-DB/公开 PoC(17 条)。Nuclei 模板通过创建管理员令牌、开启调试进程接口并调用 /app/rest/debug/processes 验证利用可行性。

受影响产品

JetBrains TeamCity On-Premises,版本 < 2023.05.4;组件为 TeamCity Server。TeamCity Cloud 不受影响。CWE-288(认证机制绕过);MITRE ATT&CK 映射 T1078、T1190。

修复版本

官方修复版本为 TeamCity 2023.05.4(结构化提取确认)。JetBrains 事后说明称 2023.05.4 于 2023-09-18 发布,并另为旧版本(8.0+)提供修复插件;官方公告与 NVD 记录中的发布时间为 2023-09-20,与事后说明存在日期出入,以官方记录为准。

缓解措施

无法立即升级时,按厂商说明安装适用于旧版本(8.0+)的修复插件;KEV 要求按厂商指令应用缓解措施,或在无缓解措施时停止使用该产品(期限 2023-10-25)。限制 TeamCity Server 的 HTTP(S) 暴露面、收敛访问来源可作为补充手段,具体厂商加固细节材料未给出。

响应步骤

  1. 盘点所有 TeamCity On-Premises 实例及版本,确认是否存在 < 2023.05.4 的部署。
  2. 升级至 2023.05.4 或安装厂商提供的旧版本修复插件。
  3. 排查异常管理员令牌、rest.debug.processes.enable 配置改动及 /app/rest/debug/processes 调用痕迹。
  4. 检查是否存在未授权账户、异常管理员操作与可疑进程执行,必要时轮换凭据。
  5. 收敛 TeamCity Server 网络暴露,持续关注 KEV/勒索软件相关情报更新。

参考来源

  1. https://blog.jetbrains.com/teamcity/2023/09/critical-security-issue-affecting-teamcity-on-premises-update-to-2023-05-4-now/kev
  2. https://nvd.nist.gov/vuln/detail/CVE-2023-42793kev
  3. https://www.exploit-db.com/exploits/51884exploit,exploitdb
  4. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-42793.yamlexploit,nuclei
  5. https://www.jetbrains.com/privacy-security/issues-fixed/x_transferred,advisory,euvd
  6. https://blog.jetbrains.com/teamcity/2023/09/cve-2023-42793-vulnerability-post-mortem/x_transferred,advisory,euvd
  7. http://packetstormsecurity.com/files/174860/JetBrains-TeamCity-Unauthenticated-Remote-Code-Execution.htmlx_transferred,advisory,euvd
  8. https://attackerkb.com/topics/1XEEEkGHzt/cve-2023-42793x_transferred,advisory,euvd
  9. https://www.securityweek.com/recently-patched-teamcity-vulnerability-exploited-to-hack-servers/x_transferred,advisory,euvd
  10. https://www.rapid7.com/blog/post/2023/09/25/etr-cve-2023-42793-critical-authentication-bypass-in-jetbrains-teamcity-ci-cd-servers/x_transferred,advisory,euvd
  11. https://www.sonarsource.com/blog/teamcity-vulnerability/advisory,euvd
  12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-42793government-resource
  13. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_multi/http/jetbrains_teamcity_rce_cve_2023_42793exploit,metasploit
  14. https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-47222advisory,euvd
  15. https://x.com/PRODAFT/status/1708586257444430019kev
  16. https://euvd.enisa.europa.eu/enisa/EUVD-2023-47222kev