GHSA-5r97-79vw-qvm4: Microsoft DirectX12 .spritefont Multiply Overflow Only Vulnerability

MODERATE
CWE-190
Published
Advisory Summary

GHSA-5r97-79vw-qvm4 is a MODERATE .spritefont multiply overflow only vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Microsoft DirectX12 libraries in the NuGet ecosystem. The issue involves .spritefont multiply overflow only in 32-bit builds. Remediation is available by upgrading affected packages to version 2026.5.8.1.

GHSA-5r97-79vw-qvm4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5r97-79vw-qvm4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Microsoft DirectX12
Package Ecosystem NuGet
Published Date
Last Updated

How to Fix GHSA-5r97-79vw-qvm4

To remediate this vulnerability, upgrade all affected Microsoft DirectX12 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

directxtk12_desktop_win10 fixed: 2026.5.8.1
Upgrade directxtk12_desktop_win10 to 2026.5.8.1
directxtk12_uwp fixed: 2026.5.8.1
Upgrade directxtk12_uwp to 2026.5.8.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for directxtk12_desktop_win10

How to Check if You Are Affected

To determine whether your application is affected by GHSA-5r97-79vw-qvm4, inspect your project dependencies for Microsoft DirectX12:

inspect dependencies for directxtk12_desktop_win10

Analyze the terminal output to locate any version of Microsoft DirectX12 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2026.5.8.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Microsoft DirectX12, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://github.com/microsoft/DirectXTK12/commit/c037a024a7ed3b2162fa2bbbe209b84ba2904494). ### 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.

GHSA-5r97-79vw-qvm4 Affected Microsoft DirectX12 Versions

2 component(s)
Fixed Versions:
2026.5.8.1
Product / Package Ecosystem Affected Versions Fixed Version
directxtk12_desktop_win10
NuGet
< 2026.5.8.1
2026.5.8.1
directxtk12_uwp
NuGet
< 2026.5.8.1
2026.5.8.1

References

Frequently Asked Questions

What is GHSA-5r97-79vw-qvm4?
GHSA-5r97-79vw-qvm4 is a security vulnerability in Microsoft DirectX12 involving .spritefont multiply overflow only in 32-bit builds under CWE-190: Integer Overflow or Wraparound.
Which Microsoft DirectX12 versions are affected?
Affected versions include releases prior to 2026.5.8.1 across affected packages: directxtk12_desktop_win10, directxtk12_uwp.
What version fixes GHSA-5r97-79vw-qvm4?
Upgrading to 2026.5.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is directxtk12_desktop_win10 affected?
Yes, directxtk12_desktop_win10 is affected in releases prior to 2026.5.8.1. Upgrade your dependency to 2026.5.8.1 or later.
Is directxtk12_uwp affected?
Yes, directxtk12_uwp is affected in releases prior to 2026.5.8.1. Upgrade your dependency to 2026.5.8.1 or later.
What CWE is associated with GHSA-5r97-79vw-qvm4?
GHSA-5r97-79vw-qvm4 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check NuGet dependencies for GHSA-5r97-79vw-qvm4?
Run the dependency tree command: 'inspect dependencies for directxtk12_desktop_win10'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5r97-79vw-qvm4",
  "modified" : "2026-05-18T15:38:59Z",
  "published" : "2026-05-18T15:38:59Z",
  "aliases" : [ ],
  "summary" : "Microsoft DirectX12: .spritefont multiply overflow only in 32-bit builds",
  "details" : "### Impact\nThe spritefont reader can be induced to perform a 32-bit overflow multiply that could in theory result in a RCE.\n\nThis impacts the use of the *DirectX Tool Kit* **SpriteFont** class file loading ctor if given untrusted data files.\n\n> Note this only applies to x86/ARM builds of the library. ARM64 and x64 native is not subject to this issue.\n\n### Patches\nThis bug has been fixed in the May 7, 2026 release. Alternatively, you can just update your copy of the reader as per [this commit](https://github.com/microsoft/DirectXTK12/commit/c037a024a7ed3b2162fa2bbbe209b84ba2904494).\n\n### Workarounds\nThis 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "directxtk12_desktop_win10"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.5.8.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 2026.4.1.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "directxtk12_uwp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.5.8.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 2026.4.1.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/DirectXTK12/security/advisories/GHSA-5r97-79vw-qvm4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/DirectXTK12/commit/c037a024a7ed3b2162fa2bbbe209b84ba2904494"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/DirectXTK12"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/DirectXTK12/releases/tag/may2026"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-18T15:38:59Z",
    "nvd_published_at" : null
  }
}