{"answers":{"affected":"It affects 15 products.","exploited":"Yes. Attackers have exploited CVE-2021-34527 in the wild since at least 3 Nov 2021, including in ransomware campaigns.","fix":"No fix has been published for CVE-2021-34527 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.","what":"CVE-2021-34527 is a high-severity vulnerability in Microsoft Windows 10 1507, published on 2 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-34527 and fix it if it is affected.\n\nWhat it is: CVE-2021-34527 is a high-severity vulnerability in Microsoft Windows 10 1507, published on 2 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2021-34527 in the wild since at least 3 Nov 2021, including in ransomware campaigns.\n\nAffected product: Microsoft Windows 10 1507. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-34527/ (Markdown: https://insights.sbomify.com/CVE-2021-34527/index.md)","id":"CVE-2021-34527","markdown":"https://insights.sbomify.com/CVE-2021-34527/index.md","name":"CVE-2021-34527","record":{"aliases":["GHSA-75f9-mm5v-2rgm"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Windows Print Spooler","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code with SYSTEM privileges via the Windows Print Spooler service, requiring immediate patching.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"windows_10_1507","vendor":"microsoft"},{"product":"windows_10_1607","vendor":"microsoft"},{"product":"windows_10_1809","vendor":"microsoft"},{"product":"windows_10_20h2","vendor":"microsoft"},{"product":"windows_10_21h2","vendor":"microsoft"},{"product":"windows_10_22h2","vendor":"microsoft"},{"product":"windows_11_21h2","vendor":"microsoft"},{"product":"windows_11_22h2","vendor":"microsoft"},{"product":"windows_rt_8.1","vendor":"microsoft"},{"product":"windows_server_2008","vendor":"microsoft"},{"product":"windows_server_2012","vendor":"microsoft"},{"product":"windows_server_2016","vendor":"microsoft"},{"product":"windows_server_2019","vendor":"microsoft"},{"product":"windows_server_2022","vendor":"microsoft"},{"product":"windows_server_20h2","vendor":"microsoft"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C","version":"3.1"},"cwes":[],"description":"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.\nUPDATE 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.\nIn 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):\n\nHKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\\PointAndPrint\nNoWarningNoElevationOnInstall = 0 (DWORD) or not defined (default setting)\nUpdatePromptSettings = 0 (DWORD) or not defined (default setting)\n\nHaving NoWarningNoElevationOnInstall set to 1 makes your system vulnerable by design.\nUPDATE 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.\nNote 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2021-06-08","github_poc":30,"max_poc_stars":802,"metasploit":1,"nuclei":0,"refs":[{"date":"2021-07-05T20:13:49Z","kind":"github_poc","ref":"https://github.com/byt3bl33d3r/ItWasAllADream","stars":802,"title":"A PrintNightmare (CVE-2021-34527) Python Scanner. Scan entire subnets for hosts vulnerable to the PrintNightmare RCE"},{"date":"2021-07-02T12:10:49Z","kind":"github_poc","ref":"https://github.com/JohnHammond/CVE-2021-34527","stars":326,"title":null},{"date":"2021-07-03T15:15:12Z","kind":"github_poc","ref":"https://github.com/nemo-wq/PrintNightmare-CVE-2021-34527","stars":178,"title":"PrintNightmare - Windows Print Spooler RCE/LPE Vulnerability (CVE-2021-34527, CVE-2021-1675) proof of concept exploits"},{"date":"2022-08-23T20:20:45Z","kind":"github_poc","ref":"https://github.com/m8sec/CVE-2021-34527","stars":119,"title":"PrintNightmare (CVE-2021-34527) PoC Exploit"},{"date":"2022-09-05T23:48:44Z","kind":"github_poc","ref":"https://github.com/hackerhouse-opensource/cve-2021-34527","stars":23,"title":"CVE-2021-34527 AddPrinterDriverEx() Privilege Escalation"},{"date":"2021-07-09T08:27:36Z","kind":"github_poc","ref":"https://github.com/dywhoami/CVE-2021-34527-Scanner-Based-On-cube0x0-POC","stars":3,"title":null},{"date":"2021-07-28T07:55:42Z","kind":"github_poc","ref":"https://github.com/Tomparte/PrintNightmare","stars":3,"title":"To fight against Windows security breach PrintNightmare! (CVE-2021-34527, CVE-2021-1675)"},{"date":"2021-07-05T16:49:32Z","kind":"github_poc","ref":"https://github.com/rdboboia/disable-RegisterSpoolerRemoteRpcEndPoint","stars":2,"title":"Workaround for Windows Print Spooler Remote Code Execution Vulnerability(CVE-2021-34527). See: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527"}],"tier":"exploited"},"has_fix":null,"headline":"Microsoft Windows Print Spooler Remote Code Execution","id":"CVE-2021-34527","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Known","product":"Windows","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Microsoft","vulnerabilityName":"Microsoft Windows Print Spooler Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"microsoft:windows_10_1507","products":["microsoft:windows_10_1507","microsoft:windows_10_1607","microsoft:windows_10_1809","microsoft:windows_10_20h2","microsoft:windows_10_21h2","microsoft:windows_10_22h2","microsoft:windows_11_21h2","microsoft:windows_11_22h2","microsoft:windows_rt_8.1","microsoft:windows_server_2008","microsoft:windows_server_2012","microsoft:windows_server_2016","microsoft:windows_server_2019","microsoft:windows_server_2022","microsoft:windows_server_20h2"],"type":"privilege_escalation","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Visual Studio Code Remote Code Execution Vulnerability","id":"CVE-2021-34528"},"packages":[],"prev":{"headline":"Windows DNS Server Remote Code Execution Vulnerability","id":"CVE-2021-34525"},"products":["Windows 10 Version 1507","Windows 10 Version 1607","Windows 10 Version 1809","Windows 10 Version 20H2","Windows 10 Version 21H2","Windows 10 Version 22H2","Windows 11 version 21H2","Windows 11 version 22H2","Windows 8.1","Windows Server 2008 R2 Service Pack 1","Windows Server 2008 R2 Service Pack 1 (Server Core installation)","Windows Server 2008 Service Pack 2","Windows Server 2008 Service Pack 2 (Server Core installation)","Windows Server 2012","Windows Server 2012 (Server Core installation)","Windows Server 2012 R2","Windows Server 2012 R2 (Server Core installation)","Windows Server 2016","Windows Server 2016 (Server Core installation)","Windows Server 2019","Windows Server 2019 (Server Core installation)","Windows Server 2022","Windows Server version 20H2"],"published":"2021-07-02","related":[{"cvss_score":9.8,"headline":"Microsoft Windows Search Remote Code Execution","id":"CVE-2017-8543","kev_date_added":"2022-05-24","published":"2017-06-15"},{"cvss_score":8.8,"headline":"Microsoft Windows External Control of File Name or Path","id":"CVE-2025-33053","kev_date_added":"2025-06-10","published":"2025-06-10"},{"cvss_score":8.8,"headline":"Microsoft Windows SMB Client Improper Access Control","id":"CVE-2025-33073","kev_date_added":"2025-10-20","published":"2025-06-10"},{"cvss_score":8.8,"headline":"Microsoft Windows Task Scheduler Privilege Escalation","id":"CVE-2024-49039","kev_date_added":"2024-11-12","published":"2024-11-12"},{"cvss_score":8.8,"headline":"Microsoft Windows MSHTML Platform Spoofing","id":"CVE-2024-43461","kev_date_added":"2024-09-16","published":"2024-09-10"},{"cvss_score":8.8,"headline":"Microsoft Windows MSHTML Platform Security Feature Bypass","id":"CVE-2024-30040","kev_date_added":"2024-05-14","published":"2024-05-14"},{"cvss_score":8.8,"headline":"Microsoft Windows SmartScreen Security Feature Bypass","id":"CVE-2023-36025","kev_date_added":"2023-11-14","published":"2023-11-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-10","vendors":["Microsoft"]},"summary":"Attackers can execute arbitrary code with SYSTEM privileges via the Windows Print Spooler service, requiring immediate patching.","url":"https://insights.sbomify.com/CVE-2021-34527/"}