Vulnerabilities in pkg:nuget/directxtex_desktop_win10

PACKAGE
Advisory Summary

GHSA-3w9w-9833-gcpv is a MODERATE (CVSS 6.1) security bug vulnerability (General Security Weakness) affecting Directxtex desktop 2019 libraries in the NuGet ecosystem. The issue involves security bug in converttosingleplane when used with untrusted content from the dds loader. Remediation is available by upgrading affected packages to version 2023.1.31.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/directxtex_desktop_win10

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-3w9w-9833-gcpv - MODERATE Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader

GHSA-3w9w-9833-gcpv at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3w9w-9833-gcpv
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification General Security Weakness
Affected Product Directxtex desktop 2019
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability Low (A:L)

How to Fix GHSA-3w9w-9833-gcpv

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

directxtex_desktop_2019 fixed: 2023.1.31.1
Upgrade directxtex_desktop_2019 to 2023.1.31.1
directxtex_desktop_win10 fixed: 2023.1.31.1
Upgrade directxtex_desktop_win10 to 2023.1.31.1
directxtex_uwp fixed: 2023.1.31.1
Upgrade directxtex_uwp to 2023.1.31.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 directxtex_desktop_2019

How to Check if You Are Affected

To determine whether your application is affected by GHSA-3w9w-9833-gcpv, inspect your project dependencies for Directxtex desktop 2019:

inspect dependencies for directxtex_desktop_2019

Analyze the terminal output to locate any version of Directxtex desktop 2019 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2023.1.31.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 General Security Weakness. In Directxtex desktop 2019, 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 A memory overwrite bug was reported by a security researcher in the **ConvertToSinglePlane** method via the *texconv* command-line tool when given an invalid height for planar video textures such as NV12. This can be a potential security bug for any clients of the library who follow the same pattern. This issue *does not* impact use of the DDS texture loader itself, only when combined with `ConvertToSinglePlane` for converting multi-planar video formats. All other functions in the library fail immediately if given images in planar formats. ### Patches The fix to the specific area as well as general hardening can be found in [this PR](https://github.com/microsoft/DirectXTex/pull/307) and will be included in the This bug has been fixed in the January 31, 2023 or later release of DirectXTex. ### Workarounds If your code makes use of **ConvertToSinglePlane**, you can validate that the width & height alignment requirements are met for the input image before calling the function.

GHSA-3w9w-9833-gcpv Affected Directxtex desktop 2019 Versions

3 component(s)
Fixed Versions:
2023.1.31.1
Product / Package Ecosystem Affected Versions Fixed Version
directxtex_desktop_2019
NuGet
< 2023.1.31.1
2023.1.31.1
directxtex_desktop_win10
NuGet
< 2023.1.31.1
2023.1.31.1
directxtex_uwp
NuGet
< 2023.1.31.1
2023.1.31.1

References

Frequently Asked Questions

What is GHSA-3w9w-9833-gcpv?
GHSA-3w9w-9833-gcpv is a security vulnerability in Directxtex desktop 2019 involving Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader under General Security Weakness.
Which Directxtex desktop 2019 versions are affected?
Affected versions include releases prior to 2023.1.31.1 across affected packages: directxtex_desktop_2019, directxtex_desktop_win10, directxtex_uwp.
What version fixes GHSA-3w9w-9833-gcpv?
Upgrading to 2023.1.31.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is directxtex_desktop_2019 affected?
Yes, directxtex_desktop_2019 is affected in releases prior to 2023.1.31.1. Upgrade your dependency to 2023.1.31.1 or later.
Is directxtex_desktop_win10 affected?
Yes, directxtex_desktop_win10 is affected in releases prior to 2023.1.31.1. Upgrade your dependency to 2023.1.31.1 or later.
What is the CVSS score of GHSA-3w9w-9833-gcpv?
GHSA-3w9w-9833-gcpv has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L.
What CWE is associated with GHSA-3w9w-9833-gcpv?
GHSA-3w9w-9833-gcpv is classified under General Security Weakness.
How can I check NuGet dependencies for GHSA-3w9w-9833-gcpv?
Run the dependency tree command: 'inspect dependencies for directxtex_desktop_2019'. 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-3w9w-9833-gcpv",
  "modified" : "2023-02-08T22:38:31Z",
  "published" : "2023-01-26T19:52:50Z",
  "aliases" : [ ],
  "summary" : "Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader",
  "details" : "### Impact\nA memory overwrite bug was reported by a security researcher in the **ConvertToSinglePlane** method via the *texconv* command-line tool when given an invalid height for planar video textures such as NV12. This can be a potential security bug for any clients of the library who follow the same pattern.\n\nThis issue *does not* impact use of the DDS texture loader itself, only when combined with `ConvertToSinglePlane` for converting multi-planar video formats. All other functions in the library fail immediately if given images in planar formats.\n\n### Patches\nThe fix to the specific area as well as general hardening can be found in [this PR](https://github.com/microsoft/DirectXTex/pull/307) and will be included in the This bug has been fixed in the January 31, 2023 or later release of DirectXTex.\n\n### Workarounds\nIf your code makes use of **ConvertToSinglePlane**, you can validate that the width & height alignment requirements are met for the input image before calling the function.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "directxtex_desktop_2019"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2023.1.31.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "directxtex_desktop_win10"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2023.1.31.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "directxtex_uwp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2023.1.31.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/DirectXTex/security/advisories/GHSA-3w9w-9833-gcpv"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/DirectXTex/pull/307"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/DirectXTex"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-26T19:52:50Z",
    "nvd_published_at" : null
  }
}