{"id":"CVE-2024-42368","aliases":["CVE-2024-42368","GHSA-rfxf-mf63-cpqv","GO-2024-3066"],"related":["CGA-vv23-6qg5-6352"],"kind":"vulnerability","state":"published","title":"open-telemetry has an Observable Timing Discrepancy","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe bearertokenauth extension's server authenticator performs a simple, non-constant time string comparison of the received & configured bearer tokens.\n\n### Details\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/blob/9128a9258fe1fee36f198f97b1e3371fc7b77a93/extension/bearertokenauthextension/bearertokenauth.go#L189-L196\n\nFor background on the type of vulnerability, see https://ropesec.com/articles/timing-attacks/.\n\n### Impact\n\nThis 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.\n\n### Fix\n\nThe observable timing vulnerability was fixed by @axw in v0.107.0 (PR https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/34516) by using constant-time comparison.\n\n### Workarounds\n\n- upgrade to v0.107.0 or above, or, if you're unable to upgrade at this time,\n- don't expose the receiver using `bearertokenauth` to network segments accessible by potential attackers, or\n- change the receiver to use a different authentication extension instead, or\n- disable the receiver relying on `bearertokenauth`","format":"markdown","source":"ghsa"},{"lang":"en","text":"open-telemetry has an Observable Timing Discrepancy in github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension","format":"markdown","source":"go"},{"lang":"es","text":"OpenTelemetry, también conocido como OTel, es un framework de observabilidad de código abierto, independiente del proveedor, para instrumentar, generar, recopilar y exportar datos de telemetría, como seguimientos, métricas y registros. El autenticador del servidor de la extensión Bearertokenauth realiza una comparación de cadenas de tiempo simple y no constante de los tokens de portador recibidos y configurados. Esto afecta a cualquiera que utilice el autenticador del servidor \"bearertokenauth\". Los clientes malintencionados con acceso a la red del recopilador pueden realizar un ataque de sincronización contra un recopilador con este autenticador para adivinar el token configurado, enviando tokens de forma iterativa y comparando el tiempo de respuesta. Esto permitiría a un atacante introducir datos falsos o incorrectos en el canal de telemetría del recopilador. La vulnerabilidad de tiempo observable se solucionó mediante el uso de comparación de tiempo constante en 0.107.0","source":"nvd"}],"published":"2024-08-13T18:59:32.000Z","modified":"2026-09-10T03:50:18.166Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-208"],"affected":[{"ranges":[{"version":">= 0.80.0, < 0.107.0","status":"affected"}],"vendor":"open-telemetry","product":"opentelemetry-collector-contrib","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.80.0","fixed":"0.107.0","status":"affected"}],"vendor":"opentelemetry","product":"opentelemetry_collector_contrib","cpe":"cpe:2.3:a:opentelemetry:opentelemetry_collector_contrib:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.80.0","status":"affected","fixed":"0.107.0"}],"ecosystem":"Go","package":"github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension","purl":"pkg:golang/github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.80.0","status":"affected","fixed":"0.107.0"}],"ecosystem":"Go","package":"github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension","purl":"pkg:golang/github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension","source":"go"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-collector-contrib/security/advisories/GHSA-rfxf-mf63-cpqv","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/34516","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-collector-contrib/commit/c9bd3eff0bb357d9c812a0d8defd3b09db95699a","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42368","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/open-telemetry/opentelemetry-collector-contrib","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-08-14T13:34:34.981Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42368","url":"https://www.cve.org/CVERecord?id=CVE-2024-42368","licence":"CVE Terms of Use","modified":"2024-08-14T13:38:51.917Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rfxf-mf63-cpqv","url":"https://github.com/advisories/GHSA-rfxf-mf63-cpqv","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:18.166Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3066","url":"https://pkg.go.dev/vuln/GO-2024-3066","licence":"CC-BY-4.0","modified":"2026-02-04T04:02:58.707Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42368","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42368","licence":"Public domain","modified":"2026-06-17T07:49:20.383Z"}],"updatedAt":"2026-11-25T22:58:44.314Z","epss":{"score":0.0062,"percentile":0.51055,"date":"2026-12-01T12:00:22.000Z"}}