Microsoft.Diagnostics.Tracing.TraceEvent is vulnerable to Out-of-Bounds Read
44
CVE Score
Medium
Out-of-Bounds Read
DynamicTraceEventParser reads a counted string or array length with GetInt32At or GetInt16At. OffsetOfNextField adds that signed length to the field offset without comparing it to the bytes left in the event, and a fixed-count array is copied with GetByteArrayAt when the payload is shorter than the array. A manifest, TraceLogging, or EventPipe event can read past the event buffer into adjacent native memory, which returns those bytes to the caller or crashes the parser. The fix keeps the length unsigned and rejects a count larger than the remaining payload in OffsetOfNextField and GetCountForArray, including fixed-count arrays, before the copy.
Upgrade the Microsoft.Diagnostics.Tracing.TraceEvent library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you parse ETW traces or sessions containing dynamically typed or manifest-based events from untrusted sources.
2.0.2 - 3.2.6
Fixed in 3.2.8Microsoft.Diagnostics.Tracing.TraceEvent is vulnerable to Out-of-Bounds Read in versions 2.0.2 - 3.2.6.
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.