GHSA-3w9w-9833-gcpv is a medium-severity (CVSS 6.1) vulnerability in directxtex_desktop_2019. A fix is available for directxtex_desktop_2019 — see the affected versions and patch details below.
Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader
Real-World Exposure
directxtex_desktop_2019.NETdirectxtex_desktop_win10.NETdirectxtex_uwpReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
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 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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | directxtex_desktop_2019 | all versions | 2023.1.31.1dotnet add package directxtex_desktop_2019 --version 2023.1.31.1 |
| .NETNuGet | directxtex_desktop_win10 | all versions | 2023.1.31.1dotnet add package directxtex_desktop_win10 --version 2023.1.31.1 |
| .NETNuGet | directxtex_uwp | all versions | 2023.1.31.1dotnet add package directxtex_uwp --version 2023.1.31.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for directxtex_desktop_2019, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update directxtex_desktop_2019 to 2023.1.31.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-3w9w-9833-gcpv is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-3w9w-9833-gcpv can be triaged on real exposure rather than presence alone.
Tailored to GHSA-3w9w-9833-gcpv. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-3w9w-9833-gcpv in your dependencies?
O3 Security finds GHSA-3w9w-9833-gcpv across NuGet dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.