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

Apache Shiro 认证绕过(CVE-2020-17523)

CVE-2020-17523 别名:GHSA-V98J-7CRC-WVRJ
CVSS 9.8 / 3.1 EPSS 85.9% CISA KEV 在野利用 公开 PoC · 1
综合风险88/ 100
CVSS9.8严重
EPSS85.9%30 天利用概率
机构收录时间2021-02-04更新 2026-12-01

研判简报

概述

Apache Shiro 在 1.7.1 之前版本与 Spring 结合使用时,在特定权限匹配规则下,攻击者可通过构造特殊 HTTP 请求完成身份认证绕过。根因在于 Shiro 路径匹配逻辑对空格等空字符及结尾斜杠的处理缺陷,使受保护路径与过滤器链匹配失败而 Spring 仍正常响应。该漏洞 CVSS 9.8,属严重级别,使用 Shiro+Spring 的 Java Web 应用应重点关注。

严重性

CVSS 3.1 评分 9.8(critical),综合风险分 71.2/100;EPSS 30 天利用概率材料未给出。攻击面为面向公众的 HTTP 接口,无需有效账户即可尝试认证绕过(对应 MITRE ATT&CK T1078、T1190)。

利用状态

截至核查日期 2026-11-24:CISA KEV 已收录(收录日期 2026-11-10),CISA SSVC 判定 exploitation=active;存在公开 PoC(Exploit-DB/公开渠道 1 条,参考材料含 GitHub 仓库 jweny/shiro-cve-2020-17523)。勒索软件关联情况材料未给出;Nuclei 模板状态材料未给出。

受影响产品

Apache Shiro before 1.7.1,且需与 Spring 结合使用;参考材料复现环境为 shiro 1.7.0。部署形态为使用 Shiro 做认证/授权的 Spring Java Web 应用。具体组件与部署细节材料未给出。

修复版本

官方修复版本为 shiro 1.7.1(结构化提取自官方记录)。补丁细节材料未给出。

缓解措施

KEV 要求按厂商说明应用修复或缓解措施,无法修复时应停止使用该产品(期限材料未给出)。参考材料指出的修复方向为:修正 tokenizeToStringArray 对空格的处理、调整结尾斜杠处理逻辑在路径匹配循环中的位置。在无法升级时,可评估避免依赖存在缺陷的路径匹配规则;具体可操作的临时缓解配置材料未给出。

响应步骤

  1. 排查所有使用 Apache Shiro 且与 Spring 集成的应用,确认版本是否低于 1.7.1。
  2. 对确认受影响系统优先升级至 shiro 1.7.1。
  3. 检查面向公众的 Shiro 认证入口,关注含空格编码(如 %20)或 /.、/./ 等特殊路径的异常请求。
  4. 结合 T1078/T1190 视角审查认证日志,识别潜在绕过尝试与后续有效账户滥用。
  5. 无法立即升级的,按 KEV 要求评估停用或按厂商指引实施缓解,并记录处置结果。
  6. 持续跟踪 KEV 与公开 PoC 动态,核查日期后状态变化需重新评估。

参考来源

  1. https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2020-17523kev
  2. https://vulncheck.com/xdb/9b43dc813ff5exploit,vulncheck_xdb
  3. https://github.com/jweny/shiro-cve-2020-17523poc,github,exploit,poc_github
  4. https://vulncheck.com/kev/cve-2020-17523advisory,vulncheck_kev
  5. https://lists.apache.org/thread.html/rce5943430a6136d37a1f2fc201d245fe094e2727a0bc27e3b2d43a39%40%3Cdev.shiro.apache.org%3Ex_refsource_MISC,x_refsource_MISC,x_transferred,Mailing List,Vendor Advisory,adv
  6. https://lists.apache.org/thread.html/r5b93ddf97e2c4cda779d22fab30539bdec454cfa5baec4ad0ffae235%40%3Cgitbox.activemq.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  7. https://lists.apache.org/thread.html/rd4b613e121438b97e3eb263cac3137caddb1dbd8f648b73a4f1898a6%40%3Cissues.activemq.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  8. https://lists.apache.org/thread.html/r9d93dfb5df016b1a71a808486bc8f9fbafebbdbc8533625f91253f1d%40%3Cdev.shiro.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  9. https://lists.apache.org/thread.html/re25b8317b00a50272a7252c4552cf1a81a97984cc2111ef7728e48e0%40%3Cdev.shiro.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  10. https://lists.apache.org/thread.html/r679ca97813384bdb1a4c087810ba44d9ad9c7c11583979bb7481d196%40%3Cdev.shiro.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  11. https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  12. https://lists.apache.org/thread.html/r852971e28f54cafa7d325bd7033115c67d613b112a2a1076817390ac%40%3Cdev.shiro.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  13. https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-1197advisory,euvd