← Vulnerability feed

Vulnerability record · CVE-2012-1851 · published 15 August 2012

CVE-2012-1851: Windows Print Spooler format string remote code execution

Microsoft · Windows 7

The Windows Print Spooler service contains a format string vulnerability (CWE-134) that can be triggered by a crafted response. A remote, unauthenticated attacker can exploit it to run arbitrary code with system privileges on affected Windows XP, Server 2003, Vista, Server 2008, and Windows 7 systems.

10.0 CVSS 2.0 High EPSS 66% · top 0.8% CWE-134 · CWE-134
10.0CVSS 2.0 base score
66%EPSS exploitation probability, 30 days
NoNot in CISA KEV
5Affected product versions listed by NVD
6References
16 Jun 2026Last modified by NVD

Description

Format string vulnerability in the Print Spooler service in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2, R2, and R2 SP1, and Windows 7 Gold and SP1 allows remote attackers to execute arbitrary code via a crafted response, aka "Print Spooler Service Format String Vulnerability."

AV:N/AC:L/Au:N/C:C/I:C/A:C

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityCVSS 2.0 score of 10 with network, unauthenticated, low-complexity code execution and a very high EPSS percentile make this a top remediation priority despite no KEV listing.

What it is

The Windows Print Spooler service contains a format string vulnerability (CWE-134) that can be triggered by a crafted response. A remote, unauthenticated attacker can exploit it to run arbitrary code with system privileges on affected Windows XP, Server 2003, Vista, Server 2008, and Windows 7 systems.

Impact

Successful exploitation gives the attacker arbitrary code execution in the context of the Print Spooler service, typically SYSTEM, allowing full compromise of the host.

Attack surface

The vulnerability is network-reachable (AV:N) with no authentication (Au:N) and low complexity (AC:L), so it can be triggered by sending a crafted response to the spooler service. No user interaction is indicated by the vector or description.

Exploitation

Not listed in CISA KEV and no public exploit tag appears in the references, but EPSS is very high (0.656, 99.2nd percentile), indicating elevated predicted exploitation activity.

What to do

  • Apply Microsoft security bulletin MS12-054 for the affected Windows versions.
  • Disable or restrict the Print Spooler service on hosts that do not require printing.
  • Block inbound SMB/RPC print spooler traffic at network boundaries and segment print infrastructure.
  • Upgrade or migrate off the unsupported Windows XP, Server 2003, Vista, and Server 2008 platforms.
  • Monitor for anomalous spooler service crashes or restarts as an exploitation indicator.

Detection

  • Monitor Windows System and Application event logs for Print Spooler service crashes or unexpected restarts.
  • Alert on unusual RPC or SMB traffic to the spooler service from untrusted network segments.
  • Track process creation events where spoolsv.exe spawns unexpected child processes.
  • Correlate host telemetry for code execution in spoolsv.exe context with inbound print-related network connections.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

5 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2012-1851 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2020-1350Windows DNS Server improper input validation remote code executionWindows DNS servers fail to properly handle certain requests, allowing remote code execution. The flaw is network-reachable, needs no authentication …KEVEPSS 97%analysed9.8CVE-2019-0708Microsoft Remote Desktop Services use-after-free remote code executionRemote Desktop Services (formerly Terminal Services) contains a use-after-free flaw that lets an unauthenticated attacker execute code by sending spe…KEVEPSS 100%analysed9.8CVE-2017-8543Windows Search memory handling flaw allows remote code executionWindows Search fails to properly handle objects in memory, allowing an unauthenticated remote attacker to execute code on affected Windows systems. T…KEVEPSS 74%analysed9.8CVE-2015-1635Microsoft HTTP.sys remote code execution via crafted HTTP requestsHTTP.sys in multiple Windows versions fails to properly handle crafted HTTP requests, allowing remote code execution. The flaw is reachable over the …KEVEPSS 100%analysed9.8CVE-2008-4250Microsoft Windows Server service RPC path canonicalization buffer overflowThe Server service in multiple Windows versions fails to properly handle path canonicalization, allowing a crafted RPC request to overflow a buffer a…KEVEPSS 99%analysed9.0CVE-2020-1040Microsoft Hyper-V RemoteFX vGPU input validation remote code executionHyper-V RemoteFX vGPU on a host server fails to properly validate input from an authenticated user on a guest operating system, allowing remote code …KEVEPSS 7.4%analysed8.8CVE-2025-33073Windows SMB improper access control allows privilege elevationWindows SMB contains an improper access control flaw (CWE-284) that lets an authorized attacker elevate privileges over the network. Microsoft rates …KEVEPSS 83%analysed8.8CVE-2025-33053Microsoft Windows WebDAV Internet Shortcut File Path Control RCEWindows Internet Shortcut (.url) files allow external control of a file name or path, which an unauthorized attacker can abuse to execute code over a…KEVEPSS 87%analysed

Source: NIST National Vulnerability Database (record CVE-2012-1851), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.