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

Microsoft Windows Print Spooler 权限提升/远程代码执行(CVE-2021-34527)

CVE-2021-34527 别名:GHSA-75F9-MM5V-2RGM
CVSS 8.8 / 3.1 EPSS 99.8% CISA KEV 在野利用 勒索软件利用 公开 PoC · 15
综合风险97/ 100
CVSS8.8高危
EPSS99.8%30 天利用概率
机构收录时间2021-07-01更新 2026-12-01

研判简报

概述

Windows Print Spooler 服务在执行特权文件操作时存在缺陷,攻击者成功利用后可以 SYSTEM 权限运行任意代码,进而安装程序、查看/更改/删除数据或创建拥有完全用户权限的新账户。该漏洞即公开所称 PrintNightmare,属于权限提升类问题(CWE-269),并映射到 MITRE ATT&CK T1068。由于 Print Spooler 在大量 Windows 客户端与服务器上默认运行,受影响面覆盖工作站与域内服务器,系统管理员与域环境运维方应优先关注。

严重性

官方记录 CVSS 3.1 评分 8.8(high),综合风险分 99.16/100;EPSS 30 天利用概率 99.8%(百分位 100.0%,日期 2026-11-24)。攻击面为本地或经认证可达的 Print Spooler 服务接口,利用成功即获得 SYSTEM 权限,技术影响评级为 total。

利用状态

CISA KEV 已收录(收录日期 2021-11-03),KEV 要求动作是“Apply updates per vendor instructions.”,期限 2022-05-03。记录显示存在已知勒索软件利用;Exploit-DB/公开 PoC 共 15 条,参考材料中包含 Metasploit 模块与 Print Spooler 远程 DLL 注入资料。CISA SSVC 评估:automatable=no、exploitation=active、technical_impact=total。以上状态核查日期为 2026-11-24。Nuclei 状态材料未给出。

受影响产品

受影响为 Microsoft Windows 的 Print Spooler 组件,覆盖 Windows 10(1507、1607、1809、20H2、21H2、22H2)、Windows 11(21H2、22H2)、Windows 8.1、Windows Server 2008 SP2、Windows Server 2008 R2 SP1、Windows Server 2012、Windows Server 2012 R2、Windows Server 2016、Windows Server 2019 等,含 Server Core 安装形态。版本区间示例:Windows 10 1507 >=10.0.10240.0 <10.0.10240.18969;Windows 10 1809 >=10.0.17763.0 <10.0.17763.2029;Windows 11 21H2 >=10.0.22000.0 <10.0.22000.318;Windows 8.1 >=6.3.0 <6.3.9600.20046;Windows Server 2008 R2 SP1 >=6.1.7601.0 <6.1.7601.25633。官方受影响清单在材料中被截断,其余条目材料未给出。

修复版本

官方已发布修复版本(结构化提取):Windows 10 1507 10.0.10240.18969;Windows 10 1607 10.0.14393.4470;Windows 10 1809 10.0.17763.2029;Windows 10 20H2 10.0.19042.1083;Windows 10 21H2 10.0.19044.1415;Windows 10 22H2 10.0.19045.2251;Windows 11 21H2 10.0.22000.318;Windows 11 22H2 10.0.22621.674;Windows 8.1 6.3.9600.20046;Windows Server 2008 R2 SP1 6.1.7601.25633。官方说明 2021-07-07 已为 Windows Server 2012、Windows Server 2016 与 Windows 10 1607 发布安全更新,其余平台修复版本材料未给出。

缓解措施

官方要求除安装更新外,必须确认以下注册表项为 0 或未定义(默认即安全设置),并确认组策略设置正确:HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint 下 NoWarningNoElevationOnInstall = 0(DWORD)或未定义、UpdatePromptSettings = 0(DWORD)或未定义;若 NoWarningNoElevationOnInstall 设为 1,系统将按设计处于脆弱状态。参考材料另提供检测脚本与缓解脚本(Vicarius 页面),可作为排查与临时加固辅助。无法立即修复时的其他替代动作材料未给出。

响应步骤

  1. 对照受影响版本区间清点 Windows 客户端与服务器(含 Server Core),确认 Print Spooler 服务运行状态与暴露面。
  2. 按厂商公告安装对应平台的安全更新,优先处理域内服务器与可被低权限用户触达的主机。
  3. 核查 PointAndPrint 注册表两项是否为 0 或未定义,并检查组策略是否存在将 NoWarningNoElevationOnInstall 置 1 的配置。
  4. 结合参考材料中的检测脚本与公开 PoC 信息,排查异常打印驱动加载、DLL 注入与 SYSTEM 级提权迹象。
  5. 关注 KEV 期限(2022-05-03)与勒索软件利用情报,将本项纳入漏洞管理优先处置清单。

参考来源

  1. https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527vendor-advisory,patch,advisory,euvd,kev
  2. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-34527government-resource
  3. https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-detection-script
  4. https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-mitigation-script
  5. https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34527x_refsource_MISC,x_transferred
  6. http://packetstormsecurity.com/files/167261/Print-Spooler-Remote-DLL-Injection.htmlx_refsource_MISC,x_transferred
  7. https://www.kb.cert.org/vuls/id/383432
  8. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_windows/dcerpc/cve_2021_1675_printnightmareexploit,metasploit
  9. https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-21181advisory,euvd
  10. https://www.fortinet.com/blog/threat-research/affiliates-cookbook-firsthand-peek-into-operations-and-tradecraft-of-contikev
  11. https://www.crowdstrike.com/blog/magniber-ransomware-caught-using-printnightmare-vulnerability/kev
  12. https://blog.talosintelligence.com/2021/08/vice-society-ransomware-printnightmare.htmlkev
  13. https://us-cert.cisa.gov/ncas/alerts/aa21-265akev
  14. https://www.cybereason.com/blog/threat-analysis-report-printnightmare-and-magniber-ransomwarekev
  15. https://blog.qualys.com/product-tech/2021/10/05/assess-risk-ransomware-attacks-qualys-researchkev
  16. https://euvd.enisa.europa.eu/enisa/EUVD-2021-21181kev