Vulnerabilities in pkg:nuget/directxtk_uwp

PACKAGE
Advisory Summary

GHSA-c55g-rp4x-fx84 is a MODERATE .spritefont multiply overflow only vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Microsoft DirectX 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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/directxtk_uwp

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/directxtk_uwp. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c55g-rp4x-fx84 - MODERATE Microsoft DirectX: .spritefont multiply overflow only in 32-bit builds

GHSA-c55g-rp4x-fx84 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c55g-rp4x-fx84
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Microsoft DirectX
Package Ecosystem NuGet
Published Date
Last Updated

How to Fix GHSA-c55g-rp4x-fx84

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

directxtk_desktop_win10 fixed: 2026.5.8.1
Upgrade directxtk_desktop_win10 to 2026.5.8.1
directxtk_uwp fixed: 2026.5.8.1
Upgrade directxtk_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 directxtk_desktop_win10

How to Check if You Are Affected

To determine whether your application is affected by GHSA-c55g-rp4x-fx84, inspect your project dependencies for Microsoft DirectX:

inspect dependencies for directxtk_desktop_win10

Analyze the terminal output to locate any version of Microsoft DirectX 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 DirectX, 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, users can update their copy of the reader as per [this commit](https://github.com/microsoft/DirectXTK/commit/ef1bd5d7f492c39dd0cd87493ba8ea38725c9791). ### 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-c55g-rp4x-fx84 Affected Microsoft DirectX Versions

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

References

Frequently Asked Questions

What is GHSA-c55g-rp4x-fx84?
GHSA-c55g-rp4x-fx84 is a security vulnerability in Microsoft DirectX involving .spritefont multiply overflow only in 32-bit builds under CWE-190: Integer Overflow or Wraparound.
Which Microsoft DirectX versions are affected?
Affected versions include releases prior to 2026.5.8.1 across affected packages: directxtk_desktop_win10, directxtk_uwp.
What version fixes GHSA-c55g-rp4x-fx84?
Upgrading to 2026.5.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is directxtk_desktop_win10 affected?
Yes, directxtk_desktop_win10 is affected in releases prior to 2026.5.8.1. Upgrade your dependency to 2026.5.8.1 or later.
Is directxtk_uwp affected?
Yes, directxtk_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-c55g-rp4x-fx84?
GHSA-c55g-rp4x-fx84 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-c55g-rp4x-fx84?
Run the dependency tree command: 'inspect dependencies for directxtk_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-c55g-rp4x-fx84",
  "modified" : "2026-05-18T15:38:15Z",
  "published" : "2026-05-18T15:38:15Z",
  "aliases" : [ ],
  "summary" : "Microsoft DirectX: .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, users can update their copy of the reader as per [this commit](https://github.com/microsoft/DirectXTK/commit/ef1bd5d7f492c39dd0cd87493ba8ea38725c9791).\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" : "directxtk_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" : "directxtk_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/DirectXTK/security/advisories/GHSA-c55g-rp4x-fx84"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/DirectXTK/commit/ef1bd5d7f492c39dd0cd87493ba8ea38725c9791"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/DirectXTK"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/DirectXTK/releases/tag/may2026"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-18T15:38:15Z",
    "nvd_published_at" : null
  }
}