CVE-2026-70586 Overview
CVE-2026-70586 is a heap-based buffer overflow vulnerability in Microsoft Windows Paint. The flaw allows an unauthenticated remote attacker to execute arbitrary code on a target system when a user opens a crafted image file. The vulnerability is classified under [CWE-122] Heap-based Buffer Overflow. Microsoft published guidance for this issue through its Security Update Guide.
Exploitation requires user interaction, typically opening or previewing a malicious file delivered through phishing, web download, or file share. Successful exploitation yields code execution in the context of the user running Windows Paint.
Critical Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary code on the victim system, compromising confidentiality, integrity, and availability.
Affected Products
- Microsoft Windows Paint (see Microsoft Security Update Guide for affected Windows versions)
Discovery Timeline
- 2026-09-08 - CVE-2026-70586 published to the National Vulnerability Database
- 2026-09-09 - Last updated in NVD database
Technical Details for CVE-2026-70586
Vulnerability Analysis
The vulnerability is a heap-based buffer overflow in Windows Paint's image parsing logic. When Paint processes a malformed image, it writes beyond the bounds of an allocated heap buffer. This corruption can overwrite adjacent heap metadata or object pointers, giving an attacker control over program flow.
The attack vector is network-based because a malicious file can be delivered remotely, but the exploit path requires the user to open the file in Paint. No prior authentication or elevated privileges are required on the target machine. Successful exploitation results in code execution at the privilege level of the logged-in user.
An attacker chaining this bug with a local privilege escalation could achieve full system compromise. The vulnerability affects confidentiality, integrity, and availability of the host.
Root Cause
The root cause is improper validation of size or length values during image decoding. Paint allocates a heap buffer based on one calculation, then writes untrusted data using a different, attacker-controlled size. This mismatch corresponds to [CWE-122] and is a common pattern in native image parsing code that lacks bounds enforcement.
Attack Vector
A remote attacker crafts a malicious image file and delivers it via email attachment, web link, shared folder, or messaging platform. When the user opens the file in Windows Paint, the parser triggers the overflow. The attacker can shape the heap to gain reliable execution and drop follow-on payloads such as loaders, information stealers, or ransomware.
No working public exploit is currently known, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The EPSS probability is 0.82% as of 2026-09-10. Refer to the Microsoft Security Update Guide entry for CVE-2026-70586 for vendor-provided technical details.
Detection Methods for CVE-2026-70586
Indicators of Compromise
- Unexpected child processes spawned by mspaint.exe, particularly cmd.exe, powershell.exe, or rundll32.exe.
- Crashes or unusual memory access violations in mspaint.exe recorded in Windows Error Reporting or Event Log.
- Malformed image files (BMP, PNG, JPEG, WEBP, HEIC) received via email or downloaded from untrusted sources.
- Outbound network connections from mspaint.exe to unknown or low-reputation hosts.
Detection Strategies
- Monitor process creation events where the parent process is mspaint.exe and the child is a scripting or LOLBin binary.
- Alert on mspaint.exe loading unusual DLLs or performing writes to autorun locations in the registry.
- Inspect email gateways and web proxies for image files with anomalous headers or oversized embedded metadata.
Monitoring Recommendations
- Enable process command-line auditing and Sysmon Event ID 1 and 11 to capture Paint execution behavior and file writes.
- Forward endpoint telemetry to a centralized data lake or SIEM to correlate image-open events with subsequent process activity.
- Track application crash telemetry for mspaint.exe to surface potential exploitation attempts.
How to Mitigate CVE-2026-70586
Immediate Actions Required
- Apply the Microsoft security update referenced in the Microsoft Security Update Guide for CVE-2026-70586 as soon as testing allows.
- Block or quarantine inbound image attachments from untrusted senders at the email gateway pending patch deployment.
- Instruct users to avoid opening image files from unknown sources in Windows Paint.
Patch Information
Microsoft has published an advisory and patch guidance for CVE-2026-70586. Administrators should consult the Microsoft Security Update Guide entry to identify the specific KB updates that apply to their Windows builds and deploy them through Windows Update, WSUS, or their preferred patch management platform.
Workarounds
- Change the default file handler for common image formats to a hardened viewer until the patch is applied.
- Restrict execution of mspaint.exe for high-risk users through AppLocker or Windows Defender Application Control.
- Enforce Attack Surface Reduction rules that block Office and mail clients from launching child processes to limit delivery paths.
# Example: set a different default application for .bmp files via registry (per-user)
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice" /v ProgId /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
# Example: block mspaint.exe execution via AppLocker (PowerShell)
New-AppLockerPolicy -RuleType Path -User Everyone -Action Deny -Path "%SystemRoot%\System32\mspaint.exe"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

