# GHSA-6HP8-73VQ-27VP: .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

- directxtk\_desktop\_2019 (NuGet): through 2022.12.16.1
- directxtk\_desktop\_win10 (NuGet): through 2022.12.16.1
- directxtk\_uwp (NuGet): through 2022.12.16.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/DirectXTK/pull/358/commits/24986cbc3ca78bed1924ef0e2e2cef13272a31d3).

### 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/DirectXTK/security/advisories/GHSA-6hp8-73vq-27vp

Page: https://cve.now/GHSA-6HP8-73VQ-27VP

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