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

XStream 反序列化远程命令执行(CVE-2021-39144)

CVE-2021-39144 别名:GHSA-J9H8-PHRW-H4FH
CVSS 8.5 / 3.1 EPSS 98.2% CISA KEV 在野利用 公开 PoC · 1 Nuclei 模板
综合风险88/ 100
CVSS8.5高危
EPSS98.2%30 天利用概率
机构收录时间2021-08-23更新 2026-12-01

研判简报

概述

XStream 是一个把对象序列化为 XML、也能从 XML 反序列化回对象的库。该漏洞在反序列化时信任输入流中的类型信息,攻击者可替换或注入对象,从而在服务器上执行本地命令。官方说明指出,按建议配置了最小类型白名单安全框架的用户不受影响。使用默认配置、直接调用 fromXML 处理不可信输入的应用方应重点关注。

严重性

CVSS 3.1 评分 8.5(AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H),综合风险分 87.62/100,评级 high。攻击面是面向公众、接受不可信序列化数据的应用端点。

利用状态

截至核查日期 2026-11-24:已收录 CISA KEV(2023-03-10),KEV 要求动作是“Apply updates per vendor instructions.”,期限 2023-03-31;EPSS 30 天利用概率 98.1%(百分位 99.9%);已有公开 Nuclei 检测模板(http/cves/2021/CVE-2021-39144.yaml);Exploit-DB/公开 PoC 记录 1 条。CISA SSVC:automatable=no、exploitation=active、technical_impact=total。材料未给出勒索软件关联信息。

受影响产品

XStream 1.4.18 之前的版本(x-stream:xstream < 1.4.18);官方公告表述为“所有至并包括 1.4.17 的版本,若开箱即用”。触发点为反序列化(unmarshalling)处理不可信输入流,XML 之外受支持格式(如 JSON)同样可被利用。按建议启用最小类型白名单的用户不受影响。

修复版本

官方修复版本为 XStream 1.4.18;该版本默认不再使用黑名单,因为黑名单无法为通用场景提供安全保障。KEV 要求按厂商说明应用更新。

缓解措施

无法立即升级时,按官方建议为 XStream 安全框架配置仅限最小必需类型的白名单;不要用默认配置处理不可信输入。材料未给出其他具体替代动作。

响应步骤

  1. 排查依赖与运行实例中 XStream 版本是否低于 1.4.18。
  2. 确认是否存在对外暴露、接受不可信 XML/JSON 反序列化输入的端点。
  3. 升级至 1.4.18;不能升级的按官方建议启用最小类型白名单。
  4. 用现有 Nuclei 模板对相关端点做检测验证,并结合日志排查异常反序列化请求。
  5. 按 KEV 要求跟踪补丁落地情况,核查日期 2026-11-24。

参考来源

  1. https://www.vmware.com/security/advisories/VMSA-2022-0027.htmlkev
  2. https://x-stream.github.io/CVE-2021-39144.htmlkev,x_transferred,advisory,euvd
  3. https://nvd.nist.gov/vuln/detail/CVE-2021-39144kev
  4. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39144.yamlexploit,nuclei
  5. https://github.com/x-stream/xstream/security/advisories/GHSA-j9h8-phrw-h4fhx_transferred,advisory,euvd
  6. https://lists.debian.org/debian-lts-announce/2021/09/msg00017.htmlmailing-list,mailing-list,x_transferred,advisory,euvd
  7. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/vendor-advisory,vendor-advisory,x_transferred,advisory,euvd
  8. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/vendor-advisory,vendor-advisory,x_transferred,advisory,euvd
  9. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/vendor-advisory,vendor-advisory,x_transferred,advisory,euvd
  10. https://www.debian.org/security/2021/dsa-5004vendor-advisory,vendor-advisory,x_transferred,advisory,euvd
  11. https://www.oracle.com/security-alerts/cpujan2022.htmlx_transferred,advisory,euvd
  12. https://security.netapp.com/advisory/ntap-20210923-0003/x_transferred,advisory,euvd
  13. https://www.oracle.com/security-alerts/cpuapr2022.htmlx_transferred,advisory,euvd
  14. https://www.oracle.com/security-alerts/cpujul2022.htmlx_transferred,advisory,euvd
  15. http://packetstormsecurity.com/files/169859/VMware-NSX-Manager-XStream-Unauthenticated-Remote-Code-Execution.htmlx_transferred,advisory,euvd
  16. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39144government-resource