NAudio.Core is vulnerable to Loop with Unreachable Exit Condition ('Infinite Loop')
50
CVE Score
Medium
Loop with Unreachable Exit Condition ('Infinite Loop')
Opening an RF64 file with WaveFileReader runs ReadWaveHeader, which advances the data chunk with stream.Position += dataChunkLength using the signed length from the ds64 chunk. A dataChunkLength of -8 cancels the 8-byte header just read, so the stream position never moves and parsing sits at 100% CPU without throwing. Reading cue points with ReadCueList walks LIST/adtl sub-chunks by p += chunkSize + 8, which also stays put when chunkSize is -8. Version 3.1.0 rejects a negative dataChunkLength, breaks the header walk when the position does not advance, and stops the CueList walk on a negative or oversized chunkSize.
Upgrade the NAudio.Core package to version 3.1.0 or later.
You are affected if you are using a version that falls within the vulnerable range and your application parses WAV or RF64 audio files with WaveFileReader.
2.3.0 - 3.0.1
Fixed in 3.1.0NAudio.Core is vulnerable to Loop with Unreachable Exit Condition ('Infinite Loop') in versions 2.3.0 - 3.0.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.