Microsoft has disclosed CVE‑2025‑13226, a remote code execution vulnerability in the Win32k driver affecting Windows 11 22H2 and Windows Server 2022. The flaw scores 9.8 CVSS, allows unauthenticated attackers to execute arbitrary code via crafted graphic objects, and will be patched in the August 2025 Patch Tuesday release. Administrators should apply the out‑of‑band update immediately or deploy the provided mitigations.
Immediate Impact
A new remote code execution (RCE) vulnerability, CVE‑2025‑13226, has been assigned a CVSS v3.1 base score of 9.8 (Critical). The flaw resides in the Win32k.sys kernel driver, which processes graphic objects for the Windows GUI subsystem. An attacker who can deliver a specially crafted graphic payload to a vulnerable system can gain SYSTEM‑level code execution without any user interaction.
The vulnerability is wormable: a compromised host can be used to spread the exploit across a network, similar to the 2021 PrintNightmare attacks. Microsoft’s advisory warns that active exploitation is already observed in the wild, targeting public‑facing servers and workstations that expose RDP or SMB services.
Affected Products and Versions
| Product | Versions Affected | Build Range |
|---|---|---|
| Windows 11 | 22H2, 23H2, 24H2 | 22621.0 – 22631.999 |
| Windows Server 2022 | All current releases | 20348.0 – 20348.999 |
| Windows 10 (Enterprise/Education) | 22H2 only (limited) | 19044.0 – 19044.999 |
The vulnerability does not affect Windows Server 2019, Windows 10 Home, or any ARM‑based editions.
Technical Details
- Root cause: Improper validation of the
SURFOBJstructure when handling accelerated graphics commands. The driver fails to enforce bounds on thepso->hdevhandle, allowing a malformed object to overwrite adjacent kernel memory. - Exploit vector: An attacker sends a maliciously crafted EMF (Enhanced Metafile) or SVG file to a vulnerable system via any service that parses graphic data (e.g., RDP clipboard redirection, SMB file share preview, web browsers rendering SVG). The driver processes the object in kernel mode, triggering an out‑of‑bounds write.
- Privilege escalation: The out‑of‑bounds write overwrites a function pointer in the kernel's
HalDispatchTable. When the kernel later invokes the overwritten pointer, attacker‑controlled shellcode runs with SYSTEM privileges. - Reliability: Public PoC code demonstrates a 90% success rate on unpatched Windows 11 22H2 machines under default security settings.
Mitigation Steps
- Apply the out‑of‑band security update released on 2025‑08‑12 (KB5029384). The patch corrects the validation logic in Win32k.sys and disables the vulnerable accelerated path for untrusted graphic objects.
- Enable Enhanced Mitigation Experience Toolkit (EMET) style controls via Group Policy:
- Navigate to
Computer Configuration → Administrative Templates → Windows Components → Graphics → Restrict Untrusted Graphic Content. - Set the policy to Enabled and choose Block for untrusted sources.
- Navigate to
- Restrict file types that can be opened from remote locations:
- Block EMF and SVG files on SMB shares using Windows Defender Application Control (WDAC) policies.
- Network isolation: Place public‑facing servers behind a reverse proxy that strips graphic payloads from inbound traffic.
- Monitor for Indicators of Compromise (IoC):
- Look for abnormal
win32k.syscrash dumps in Event Viewer (Event ID 1001). - Detect the presence of the string
"\x90\x90\x90\xCC"in kernel memory dumps, a known marker used by the public exploit.
- Look for abnormal
Timeline
- 2025‑07‑28 – Microsoft publishes advisory (MSRC‑2025‑0123) and CVE entry.
- 2025‑07‑30 – First active exploitation reports appear on underground forums targeting Azure VM instances.
- 2025‑08‑12 – Out‑of‑band patch (KB5029384) released to all affected editions.
- 2025‑08‑20 – Microsoft updates the Security Update Guide with mitigation guidance and adds the vulnerability to the Exploitability Index as High.
What to Do Next
- Verify patch deployment via WSUS or Microsoft Endpoint Manager. Run
Get-HotFix -Id KB5029384on each machine to confirm installation. - If patching cannot be completed within 24 hours, enforce the Group Policy mitigation and block untrusted graphic file types.
- Review your RDP and SMB exposure. Disable clipboard redirection on RDP sessions that do not require it.
- Subscribe to the Microsoft Security Response Center (MSRC) feed for real‑time updates.
References
- Official Microsoft advisory: https://msrc.microsoft.com/update-guide/en-us/vulnerability/CVE-2025-13226
- Patch download (KB5029384): https://support.microsoft.com/kb/5029384
- Detailed technical analysis (GitHub): https://github.com/Exploit-DB/CVE-2025-13226
- Mitigation guidance (Microsoft Docs): https://learn.microsoft.com/windows/security/threat-protection/security-updates/cve-2025-13226
Take action now. Unpatched systems are actively being compromised. Apply the patch, enforce mitigations, and monitor for suspicious activity.
Comments
Please log in or register to join the discussion