Microsoft.Diagnostics.Tracing.TraceEvent is vulnerable to Path Traversal
53
CVE Score
Medium
Path Traversal
FindElfSymbolFilePath resolves Linux symbols using a build_id string taken from trace metadata and a .gnu_debuglink filename read from a local ELF. It lowercases that build id and splices it into symbol-cache paths such as elf-buildid-{buildId}, and it passes the debug-link name to Path.Combine(elfDir, debugLink), without checking either string. A build_id or debug-link containing .., an absolute path, or a device name makes the lookup open or download a file outside the symbol directory. The fix rejects unsafe debug-link names in TryGetDebugLinkCandidate and accepts only hexadecimal build ids in NormalizeElfBuildId before a path is built.
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 resolve native symbols for ELF binaries with untrusted debug-link or build-id metadata.
3.2.0 - 3.2.6
Fixed in 3.2.8Microsoft.Diagnostics.Tracing.TraceEvent is vulnerable to Path Traversal in versions 3.2.0 - 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.