Microsoft.Diagnostics.Tracing.TraceEvent is vulnerable to Out-of-bounds Read
55
Medium Risk
The CLR trace parser reads the number of map entries for a MethodILToNativeMap event directly from the event payload without validating it against the actual payload size. A malformed or inflated entry count causes the offset accessors to read past the end of the event data. This produces out-of-bounds native memory reads and an uncatchable AccessViolationException that crashes the process. The fix validates that the payload is large enough for the declared entry count before the data is read.
You are affected if you are using a version that falls within the vulnerable range and your application uses the library to parse untrusted or externally supplied ETW or EventPipe trace data containing CLR method events.
Microsoft.Diagnostics.Tracing.TraceEvent is vulnerable to Out-of-bounds Read in versions 1.0.3 - 3.2.5.
Upgrade the Microsoft.Diagnostics.Tracing.TraceEvent library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant