Intel

AIKIDO-2026-845480

NAudio.Core is vulnerable to Loop with Unreachable Exit Condition ('Infinite Loop')

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 21, 2026
October 21, 2026

50

CVE Score

Medium

Loop with Unreachable Exit Condition ('Infinite Loop')

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the NAudio.Core package to version 3.1.0 or later.

Who does this affect?

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.

Versions

2.3.0 - 3.0.1

Fixed in 3.1.0

Background info

NAudio.Core is vulnerable to Loop with Unreachable Exit Condition ('Infinite Loop') in versions 2.3.0 - 3.0.1.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea