CVE-2025-50165: Remote Code Execution in Windows Imaging Component JPEG Re-encoding
- Vendor
- Microsoft Corporation
CVE-2025-50165 is an untrusted pointer dereference vulnerability in the Microsoft Windows Graphics Component's Windows Imaging Component (WIC). During compression or re-encoding of specially crafted 12-bit or 16-bit JPEG images, uninitialized compress_data_12 or compress_data_16 function pointers can be dereferenced, potentially enabling arbitrary code execution. The vulnerable path includes jpeg_finish_compress. Affected WIC library versions range from 10.0.26100.0 through 10.0.26100.4945, associated with Windows 11 24H2 and Windows Server 2025. Although initially described as a JPEG decoding vulnerability, detailed root-cause analysis identifies compression or re-encoding as the trigger; merely opening or viewing an image is insufficient. Microsoft assigned a CVSS 3.1 base score of 9.8.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution within the affected image-processing process, potentially compromising the confidentiality, integrity, and availability of resources accessible to that process. Exploitation does not inherently confer SYSTEM or administrator privileges. Despite the critical severity rating, practical exploitation requires substantial control over process memory and knowledge of relevant addresses.
Mitigation
If you can’t patch tonight, do this now.
Until patched, reduce exposure by preventing untrusted 12-bit and 16-bit JPEG images from reaching WIC compression or re-encoding workflows, including automatic thumbnail-generation and image-conversion functions. Validate image format and bit depth before submitting images to those workflows. These exposure-reduction measures are not substitutes for the security update; no specific vendor-approved workaround is established.
Remediation
Patch, then assume compromise.
Install Microsoft's August 2025 security updates addressing CVE-2025-50165, or superseding cumulative updates, on affected Windows systems. Prioritize systems and applications that re-encode untrusted images. The fix initializes the affected function pointers and checks for NULL before dereferencing them, aligning with corrections in libjpeg-turbo 3.1.1. Verify that the affected WIC library is no longer within the vulnerable version range of 10.0.26100.0 through 10.0.26100.4945.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-50165 exploited in the wild?
- Yes. As of Oct 28, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-50165?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2025-50165, the earliest disclosed Dec 7, 2025.
- Is there a patch for CVE-2025-50165?
- Install Microsoft's August 2025 security updates addressing CVE-2025-50165, or superseding cumulative updates, on affected Windows systems. Prioritize systems and applications that re-encode untrusted images.
- What products are affected by CVE-2025-50165?
- Microsoft Corporation Windows 11 24h2 and Microsoft Corporation Windows Server 2025.
- How severe is CVE-2025-50165?
- CVE-2025-50165 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 14.7% (97th percentile) as of Oct 28, 2026.
Recent activity
46 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.