# GHSA-856V-H7G8-8V44: .WAV file reader out-of-bounds read

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2023-02-08
- Modified: 2023-02-08

## Affected versions

- directxtk12\_desktop\_2019 (NuGet): through 2022.12.18.1
- directxtk12\_uwp (NuGet): through 2022.12.18.1
- directxtk\_desktop\_2017 (NuGet): all versions

## Description

### Impact
A security researcher reported a bug in the ``WAVFileReader`` module where a memory scan is bounded by untrusted data from the input file.  This can result in a crash at runtime.

This impacts use of the *DirectX Tool Kit for Audio* **SoundEffect** file loading ctor if given untrusted data files, as well as the **xwbtool** command-line tool if used on untrusted files.

### Patches
This bug has been fixed in the February 6, 2023 release. Alternatively, you can just update your copy of the reader as per [this commit](https://github.com/microsoft/DirectXTK12/pull/151/commits/91df0148ec236970ae167ea4fe3378c1753118ed).

### Workarounds
This does not apply if your .wav files are all 'trusted' data that were included with your application. It's primarily an issue only if you are using user-provided or network downloaded wav files.

## References

- https://github.com/microsoft/DirectXTK12/security/advisories/GHSA-856v-h7g8-8v44

Page: https://cve.now/GHSA-856V-H7G8-8V44

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
