Intel

AIKIDO-2024-10321

go.opentelemetry.io/collector/internal/globalgates is vulnerable to Undefined Behavior

Undefined Behavior Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 4, 2024

40

Medium Risk

This Affects:

gogo.opentelemetry.io/collector/internal/globalgates
0.2.0 - 0.110.0
Fixed in 0.111.0
1.0.0 - 1.16.0
Fixed in 1.17.0
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to undefined behavior due to improper handling of an error variable. The variable is shared across multiple requests, as it uses the same memory address as an error defined outside the function. This results in memory overwrites, leading to crashes and other unpredictable behavior.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

go.opentelemetry.io/collector/internal/globalgates is vulnerable to Undefined Behavior in versions 0.2.0 - 0.110.0 and 1.0.0 - 1.16.0.

How to fix this

Upgrade the go.opentelemetry.io/collector/internal/globalgates library to a patch version.