Charta Aetatis Cyberpunk

Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
MorningStar Security is in early access. The wiki is open to everyone; the news desks open with a code. Have a code, or want launch notice?
Export
stub · 1 feed

PrintNightmare

News volume No stories in the last 90 days
23 Aug: 0 stories24 Aug: 0 stories25 Aug: 0 stories26 Aug: 0 stories27 Aug: 0 stories28 Aug: 0 stories29 Aug: 0 stories30 Aug: 0 stories31 Aug: 0 stories1 Sep: 0 stories2 Sep: 0 stories3 Sep: 0 stories4 Sep: 0 stories5 Sep: 0 stories6 Sep: 0 stories7 Sep: 0 stories8 Sep: 0 stories9 Sep: 0 stories10 Sep: 0 stories11 Sep: 0 stories12 Sep: 0 stories13 Sep: 0 stories14 Sep: 0 stories15 Sep: 0 stories16 Sep: 0 stories17 Sep: 0 stories18 Sep: 0 stories19 Sep: 0 stories20 Sep: 0 stories21 Sep: 0 stories22 Sep: 0 stories23 Sep: 0 stories24 Sep: 0 stories25 Sep: 0 stories26 Sep: 0 stories27 Sep: 0 stories28 Sep: 0 stories29 Sep: 0 stories30 Sep: 0 stories1 Oct: 0 stories2 Oct: 0 stories3 Oct: 0 stories4 Oct: 0 stories5 Oct: 0 stories6 Oct: 0 stories7 Oct: 0 stories8 Oct: 0 stories9 Oct: 0 stories10 Oct: 0 stories11 Oct: 0 stories12 Oct: 0 stories13 Oct: 0 stories14 Oct: 0 stories15 Oct: 0 stories16 Oct: 0 stories17 Oct: 0 stories18 Oct: 0 stories19 Oct: 0 stories20 Oct: 0 stories21 Oct: 0 stories22 Oct: 0 stories23 Oct: 0 stories24 Oct: 0 stories25 Oct: 0 stories26 Oct: 0 stories27 Oct: 0 stories28 Oct: 0 stories29 Oct: 0 stories30 Oct: 0 stories31 Oct: 0 stories1 Nov: 0 stories2 Nov: 0 stories3 Nov: 0 stories4 Nov: 0 stories5 Nov: 0 stories6 Nov: 0 stories7 Nov: 0 stories8 Nov: 0 stories9 Nov: 0 stories10 Nov: 0 stories11 Nov: 0 stories12 Nov: 0 stories13 Nov: 0 stories14 Nov: 0 stories15 Nov: 0 stories16 Nov: 0 stories17 Nov: 0 stories18 Nov: 0 stories19 Nov: 0 stories20 Nov: 0 stories
Snapshot
CVE
CVE-2021-34527 1 source
CVSS
7.3 1 source
Weakness
missing ACL checks 1 source
Disclosed
2021-06-28 1 source
Intelligence coverage

Summary

PrintNightmare is the public name given to a cluster of Windows Print Spooler vulnerabilities, first tracked as CVE-2021-1675 and later as CVE-2021-34527, that allow local privilege escalation and, under certain configurations, remote code execution 12. The name was coined by the Sangfor research team, whose accidental publication of proof-of-concept exploit code on GitHub in June 2021 triggered wide public attention to the flaw 1.

Affected products

The vulnerabilities affect the Windows Print Spooler service, which is implicated in the affected_products fact table, and the broader Point and Print driver-installation feature used when clients connect to remote print servers 34. A related zero-day, CVE-2021-36958, affects the same subsystem and was attributed to a December 2020 discovery by Victor Mata of FusionX, Accenture Security 5.

Exploitation

PrintNightmare stems from missing access control list (ACL) checks in the AddPrinterDriverEx(), RpcAddPrinterDriver(), and RpcAsyncAddPrinterDriver() Windows API functions used to install printer drivers 2. CVE-2021-1675 was initially discovered by researchers from Tencent Security, AFINE, and NSFOCUS before Sangfor's team codenamed it PrintNightmare 1. Exploitation generally requires the "Point and Print Restrictions" policy to be enabled with "When installing drivers for a new connection" set to "Do not show warning on elevation prompt" 2. A separate variant, CVE-2021-36958, allows non-administrative users to trigger the CopyFile registry directive and gain SYSTEM privileges simply by connecting to a remote printer, provided the driver is already installed on the client 5.

In the wild, the FBI and CISA report that Russian state-sponsored cyber actors exploited PrintNightmare (CVE-2021-34527) together with default multifactor authentication misconfigurations to gain network access to a non-governmental organization beginning as early as May 2021 3. After initial access via a dormant, MFA-unenrolled account, the actors escalated privileges, redirected authentication calls to localhost to defeat MFA, and used built-in Windows utilities such as regedit.exe, ntdsutil.exe, and rar.exe to modify the registry, enumerate Active Directory accounts, and archive stolen data before moving laterally to cloud and email systems 3.

Fix and mitigation

Microsoft's initial out-of-band patch, KB5004945, released July 6, 2021, addressed only the remote code execution vector and left the local privilege escalation path exploitable, a gap reported by researchers Matthew Hickey and Will Dormann and independently demonstrated as an RCE bypass by Benjamin Delpy 2. Microsoft told BleepingComputer it was investigating bypass claims but attributed them to administrators running insecure registry configurations 2. Separately, 0Patch's free micropatch blocked exploitation attempts, but Microsoft warned its own July 6 update modified localspl.dll in a way that broke 0Patch's fix 2. As of the August 2021 advisory, Microsoft had not released a security update for CVE-2021-36958, for which the recommended workaround was disabling the Print Spooler service or restricting installation via the "Package Point and Print – Approved Servers" group policy 5.

Microsoft subsequently changed Point and Print's default behavior: updates released August 10, 2021 or later require administrative privilege to install printer drivers by default (CVE-2021-34481), governed by the RestrictDriverInstallationToAdministrators registry value under HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint4. This change caused a side effect reported in KB5005033/KB5005031: users saw repeated "Do you trust this printer" prompts and administrative credential requests, which Microsoft addressed via KB5005652 while noting that a further printing issue remained after the September 2021 updates 4. After updates released October 12, 2021 or later, administrators could also configure this restriction via Group Policy, and updates from September 21, 2021 or later allowed the Point and Print Restrictions policy to accept dot-delimited IP addresses alongside fully qualified host names. CISA and the FBI additionally recommend enforcing MFA for all users and reviewing default MFA configurations to prevent "fail open" and re-enrollment abuse, independent of the Print Spooler fixes 3.

Timeline

  • 2020-12: Victor Mata of FusionX, Accenture Security discovers what becomes CVE-2021-36958 5.
  • 2021-05: Russian state-sponsored actors begin exploiting default MFA settings and PrintNightmare against an NGO 3.
  • 2021-06-28: CVE-2021-1675 is disclosed 1.
  • 2021-06-30: Sangfor researchers accidentally leak PoC exploit code on GitHub, coining the name PrintNightmare 1.
  • 2021-07-06: Microsoft releases out-of-band patch KB5004945, later found incomplete 2.
  • 2021-07-07: Benjamin Delpy and others demonstrate RCE bypasses of Microsoft's patch 2.
  • 2021-08-10: Windows updates begin defaulting RestrictDriverInstallationToAdministrators to enabled.
  • 2021-08-12: Microsoft issues an advisory for the separate zero-day CVE-2021-36958 5.
  • 2021-09-13: Microsoft publishes KB5005652 detailing Point and Print default-behavior changes.
  • 2021-09-21: Updates allow dot-delimited IP addresses in the Point and Print Restrictions policy.
  • 2021-09-30: Microsoft marks the KB5005033 printing-prompt issue resolved via KB5005652, while noting new September issues 4.
  • 2021-10-12: Updates enable Group Policy configuration of RestrictDriverInstallationToAdministrators.
  • 2022-03-16: CISA and FBI publish a joint advisory on Russian exploitation of PrintNightmare and MFA misconfigurations 3.

Facts 5

AttributeValueConfidenceSourcesCited
CVE CVE-2021-34527 low 1 3
CVSS 7.3 low 1 5
Weakness missing ACL checks low 1 2
Disclosed 2021-06-28 low 1 1
Patch status unpatched low 1 5

Affected product 3

Affects 1

Frequently mentioned together 5

Sources 6

  1. PoC exploit accidentally leaks for dangerous Windows PrintNightmare bug · Reddit archive backfill (cyber)
  2. Microsoft's incomplete PrintNightmare patch fails to fix vulnerability · Reddit archive backfill (cyber)
  3. Russian State-Sponsored Cyber Actors Gain Network Access by Exploiting Default Multifactor Authentication Protocols and “PrintNightmare” Vulnerability | CISA · Reddit archive backfill (cyber)
  4. Microsoft marks latest Windows printing issue as resolved (KB5005033) · Reddit archive backfill (cyber)
  5. Microsoft confirms another Windows print spooler zero-day bug · Reddit archive backfill (cyber)
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 519 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks