high · 7CVE-2026-62897Aug 11, 2026

CVE-2026-62897: .NET WPF Integer Overflow Remote Code Execution

Pranav Khune
Penetration Testing Team Lead, SecureLayer7

A crafted font or document fed to a WPF application can trigger an integer overflow in the Windows Presentation Foundation native runtime, letting an attacker run arbitrary code on the victim's…

PackageMicrosoft.WindowsDesktop.App.Runtime.win-arm64
Ecosystemnuget
Affected>= 10.0.0, <= 10.0.10
Fixed in10.0.11
CVE-2026-62897: .NET WPF Integer Overflow Remote Code Execution

The problem

Windows Presentation Foundation ships a native font-subsetting component (DirectWriteForwarder / TtfDelta) that performs allocation-size arithmetic on attacker-controlled values pulled from font tables, such as glyph counts, table lengths, and offsets.

Because the arithmetic is unchecked, a crafted TrueType font embedded in an XPS document or XAML content can wrap a 32-bit integer to zero or a small number, causing the runtime to allocate an undersized heap buffer and then write far beyond it. A local, unprivileged attacker who tricks a user into opening malicious content through a WPF application can achieve arbitrary code execution in the context of that user.

Only the Windows Desktop Runtime is affected; base .NET and ASP.NET Core workloads do not include this code.

The fix

Update to a patched .NET Desktop Runtime: 10.0.11, 9.0.19, or 8.0.30. Run dotnet --info to confirm the installed version. Restart affected applications after updating. Self-contained WPF deployments must be recompiled against a patched SDK and redeployed. There is no known workaround short of avoiding untrusted XPS documents and XAML content in WPF applications.

Reporter not attributed.

References: [1][2][3][4][5]

Related research