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.
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.
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.
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 6.9 | 4.0 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-5r97-79vw-qvm4 ↗ |
| CWE id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| nuget | directxtk12_desktop_win10 | < 2026.4.1.1 | 2026.5.8.1 | — |
| nuget | directxtk12_uwp | < 2026.4.1.1 | 2026.5.8.1 | — |