Summary
Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader
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.
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.
GHSA-3W9W-9833-GCPV has a CVSS score of 6.1 (Medium). The vector is requires local access, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2023.1.31.1); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
The fix to the specific area as well as general hardening can be found in this PR and will be included in the This bug has been fixed in the January 31, 2023 or later release of DirectXTex.
Frequently Asked Questions
- What is GHSA-3W9W-9833-GCPV? GHSA-3W9W-9833-GCPV is a medium-severity security vulnerability in directxtex_desktop_2019 (nuget), affecting versions < 2023.1.31.1. It is fixed in 2023.1.31.1.
- How severe is GHSA-3W9W-9833-GCPV? GHSA-3W9W-9833-GCPV has a CVSS score of 6.1 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which packages are affected by GHSA-3W9W-9833-GCPV?
directxtex_desktop_2019(nuget) (versions < 2023.1.31.1)directxtex_desktop_win10(nuget) (versions < 2023.1.31.1)directxtex_uwp(nuget) (versions < 2023.1.31.1)
- Is there a fix for GHSA-3W9W-9833-GCPV? Yes. GHSA-3W9W-9833-GCPV is fixed in 2023.1.31.1. Upgrade to this version or later.
- Is GHSA-3W9W-9833-GCPV exploitable, and should I be worried? Whether GHSA-3W9W-9833-GCPV is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether GHSA-3W9W-9833-GCPV is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix GHSA-3W9W-9833-GCPV?
- Upgrade
directxtex_desktop_2019to 2023.1.31.1 or later - Upgrade
directxtex_desktop_win10to 2023.1.31.1 or later - Upgrade
directxtex_uwpto 2023.1.31.1 or later
- Upgrade