GHSA-5r97-79vw-qvm4 — Vulnerability in directxtk12_uwp
Microsoft DirectX12: .spritefont multiply overflow only in 32-bit builds
Does your project use an affected directxtk12_uwp version?
Paste your packages.lock.json to check it for GHSA-5r97-79vw-qvm4 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
The spritefont reader can be induced to perform a 32-bit overflow multiply that could in theory result in a RCE.
This impacts the use of the DirectX Tool Kit SpriteFont class file loading ctor if given untrusted data files.
Note this only applies to x86/ARM builds of the library. ARM64 and x64 native is not subject to this issue.
Patches
This bug has been fixed in the May 7, 2026 release. Alternatively, you can just update your copy of the reader as per this commit.
Workarounds
This does not apply if a project's .spritefont files are all 'trusted' data that were included with an application. It's primarily an issue only if developers are using user-provided or network downloaded spritefont files.
Advisory Timeline
- First published May 18, 2026 (192 days ago).
- Last revised May 18, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package directxtk12_uwp --version 2026.5.8.1
dotnet add package directxtk12_desktop_win10 --version 2026.5.8.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: NuGet (2).
| Package | Fixed In |
|---|---|
| directxtk12_uwp NuGet · Affected: 2016.10.6.1, 2016.12.5.1, 2016.6.30.1, 2016.7.18.1 (+59 more) | 2026.5.8.1 |
| directxtk12_desktop_win10 NuGet · Affected: 2025.10.28.1, 2025.3.21.3, 2025.7.10.1, 2026.4.1.1 | 2026.5.8.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-190Integer OverflowMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
References
Frequently Asked Questions
- What is GHSA-5r97-79vw-qvm4?
- Microsoft DirectX12: .spritefont multiply overflow only in 32-bit builds. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.3/10).
- How do I check if my project is affected by GHSA-5r97-79vw-qvm4?
- GHSA-5r97-79vw-qvm4 affects directxtk12_uwp and directxtk12_desktop_win10. Use GeekWala's free vulnerability scanner to check your dependencies against GHSA-5r97-79vw-qvm4 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
Related CVEs
- CVE-2026-114154MEDIUM
Microsoft Security Advisory CVE-2026-114154 - ASP.NET Core Denial of Service Vulnerability
- GHSA-6856-87hx-p5x7MEDIUM
Microsoft Security Advisory CVE-2026-105544 - .NET Elevation of Privilege Vulnerability