CVE-2024-42368: open-telemetry has an Observable Timing Discrepancy
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2617%
CWE
Published
8/13/2024
Updated
8/13/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension | go | >= 0.80.0, < 0.107.0 | 0.107.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from line 189-196 in bearertokenauth.go where token comparison was done using regular string equality check (expect != token). The commit c9bd3eff0bb357d9c812a0d8defd3b09db95699a replaced this with crypto/subtle.ConstantTimeCompare. The Authenticate method handles server-side token validation, making it the critical point where timing discrepancies could be exploited. The pre-patch code clearly shows a vulnerable comparison pattern while the fix explicitly addresses it with constant-time comparison.