- ひとことでWindowsの印刷機能の弱点で、最も強い権限で命令を実行される脆弱性
- 深刻度8.8 重要CVSS v3.1
過去の事例 この記事は過去に話題になった脆弱性の解説です。現在の状況は公式情報でご確認ください。
基本情報(データから表示)
| 通称 | PrintNightmare |
|---|---|
| CVE番号 | CVE-2021-34527 |
| いつ起きたか | NVD に登録された日: 2021-07-02 KEV に追加された日: 2021-11-03 |
| 製品 | Microsoft Windows |
| 深刻度(CVSS) | 8.8 重要CVSS v3.1 NVD に登録された、他の機関(開発元など)による評価 詳細(ベクター)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| ランサムウェアでの悪用 | 悪用が確認されている |
| 弱点の種類(CWE) | CWE-269(権限管理の不備) |
何が起きた
Windowsで印刷を管理する機能「Print Spooler(印刷スプーラー)」が、強い権限が必要なファイル操作を正しく行っていない弱点がありました。悪用されると、攻撃者がSYSTEM(Windowsで最も強い権限)で好きなプログラムを実行でき、プログラムのインストール、データの閲覧・変更・削除、全権限を持つアカウントの作成ができてしまいます。NVDの評価では、ネットワーク越しに攻撃でき、攻撃者には一般利用者程度の権限が必要とされています。KEVでは、ランサムウェアの攻撃に使われたことが確認されています。
攻撃の流れ
データをもとに、AIを使用して作成した図です。実際の攻撃は、これと異なる場合があります。
誰が影響を受ける
Microsoft によると、すべてのバージョンの Windows が影響を受け、ドメインコントローラーも印刷スプーラーのサービスが動いていれば対象です。Microsoft は 2021年7月7日までに、サポート中のすべての Windows 向けに更新を出しました。
何をすればいい
古い事例ですが、2021年7月6日以降に出た更新プログラムが適用されているか確認してください。データによると、更新に加えて、レジストリーの NoWarningNoElevationOnInstall と UpdatePromptSettings が 0 か、設定されていないことも確認が必要です(NoWarningNoElevationOnInstall を 1 にしていると、ぜい弱な状態になります)。Microsoft によると、2021年7月13日の月例の更新にもこの修正が含まれています。すぐに更新できない場合の回避策として、Microsoft は、印刷スプーラーのサービスを止めて無効にする方法と、グループポリシーで外からの印刷の受け付けを止める方法を案内しています(サービスを止めると、その機器からは印刷できなくなります)。
用語メモ
次に読む
公式情報と元データ
公式情報
元データ(英語)を開く
Microsoft Windows Print Spooler Remote Code Execution Vulnerability
概要(CISA KEV)
Microsoft Windows Print Spooler contains an unspecified vulnerability due to the Windows Print Spooler service improperly performing privileged file operations. Successful exploitation allows an attacker to perform remote code execution with SYSTEM privileges. The vulnerability is also known under the moniker of PrintNightmare.
説明(NVD)
A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged file operations. An attacker who successfully exploited this vulnerability could run arbitrary code with SYSTEM privileges. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. UPDATE July 7, 2021: The security update for Windows Server 2012, Windows Server 2016 and Windows 10, Version 1607 have been released. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. If you are unable to install these updates, see the FAQ and Workaround sections in this CVE for information on how to help protect your system from this vulnerability. In addition to installing the updates, in order to secure your system, you must confirm that the following registry settings are set to 0 (zero) or are not defined (Note: These registry keys do not exist by default, and therefore are already at the secure setting.), also that your Group Policy setting are correct (see FAQ): HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint NoWarningNoElevationOnInstall = 0 (DWORD) or not defined (default setting) UpdatePromptSettings = 0 (DWORD) or not defined (default setting) Having NoWarningNoElevationOnInstall set to 1 makes your system vulnerable by design. UPDATE July 6, 2021: Microsoft has completed the investigation and has released security updates to address this vulnerability. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. If you are unable to install these updates, see the FAQ and Workaround sections in this CVE for information on how to help protect your system from this vulnerability. See also KB5005010: Restricting installation of new printer drivers after applying the July 6, 2021 updates. Note that the security updates released on and after July 6, 2021 contain protections for CVE-2021-1675 and the additional remote code execution exploit in the Windows Print Spooler service known as “PrintNightmare”, documented in CVE-2021-34527.
この元データの出どころ: CISA KEV カタログで見る ・ NVD で見る