Vulnerability · Published Aug 13, 2024 · Assigned by GitHub_M
CVE-2024-42368open-telemetry has an Observable Timing Discrepancy
Medium 6.5
In plain English
A medium-severity security flaw in opentelemetry-collector-contrib from open-telemetry. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
OpenTelemetry, also known as OTel, is a vendor-neutral open source Observability framework for instrumenting, generating, collecting, and exporting telemetry data such as traces, metrics, and logs. The bearertokenauth extension's server authenticator performs a simple, non-constant time string comparison of the received & configured bearer tokens. This impacts anyone using the `bearertokenauth` server authenticator. Malicious clients with network access to the collector may perform a timing attack against a collector with this authenticator to guess the configured token, by iteratively sending tokens and comparing the response time. This would allow an attacker to introduce fabricated or bad data into the collector's telemetry pipeline. The observable timing vulnerability was fixed by using constant-time comparison in 0.107.0
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension | 0.107.0 | GHSA-rfxf-mf63-cpqv |
| Go | github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension | 0.107.0 | GO-2024-3066 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| open-telemetry | opentelemetry-collector-contrib | >= 0.80.0, < 0.107.0 |
Weakness: CWE-208 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
References
- https://github.com/open-telemetry/opentelemetry-collector-contrib/security/advisories/GHSA-rfxf-mf63-cpqv x_refsource_CONFIRM
- https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/34516 x_refsource_MISC
- https://github.com/open-telemetry/opentelemetry-collector-contrib/commit/c9bd3eff0bb357d9c812a0d8defd3b09db95699a x_refsource_MISC