{"id":"CVE-2026-45404","aliases":["CVE-2026-45404","GHSA-42cj-99w8-cp2p","GO-2026-6258"],"related":["CGA-427q-qf49-9qc2"],"kind":"vulnerability","state":"published","title":"OpenTelemetry-Go: Unsynchronized baggage map can panic under concurrent access","summary":"OpenTelemetry-Go is the Go implementation of OpenTelemetry. From version 0.11.0 through 1.44.0, the OpenTracing bridge's bridgeSpan contains an unsynchronized extraBaggageItems map which can cause a panic. Because Go maps are not safe for concurrent read/write access, concurrent SetBaggageItem and correlation.MapFromContext calls on the same hooked bridgeSpan can trigger a fatal runtime error—such as concurrent map read and map write or concurrent map iteration and map write—terminating the process and causing denial of service. This issue is fixed in version 1.45.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenTelemetry-Go is the Go implementation of OpenTelemetry. From version 0.11.0 through 1.44.0, the OpenTracing bridge's bridgeSpan contains an unsynchronized extraBaggageItems map which can cause a panic. Because Go maps are not safe for concurrent read/write access, concurrent SetBaggageItem and correlation.MapFromContext calls on the same hooked bridgeSpan can trigger a fatal runtime error—such as concurrent map read and map write or concurrent map iteration and map write—terminating the process and causing denial of service. This issue is fixed in version 1.45.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`go.opentelemetry.io/otel/bridge/opentracing` introduced an unsynchronized `extraBaggageItems` map on `bridgeSpan`. One goroutine can write this map through `Span.SetBaggageItem` while another goroutine reads and iterates it during correlation baggage propagation, which can trigger Go's fatal concurrent map access panic and crash the process. The finding is low severity because exploitation requires a specific OpenTracing bridge configuration and concurrent use of the same span.\n\nIntroduced in commit: 8cddf30\n\n### Details\n\n`bridge/opentracing/bridge.go:80-85` adds `extraBaggageItems map[string]string` to `bridgeSpan` without a mutex or other synchronization primitive. `bridge/opentracing/bridge.go:219-234` shows `SetBaggageItem` calling `updateOtelContext`, which lazily creates the map and writes `s.extraBaggageItems[restrictedKey] = value` without locking. `bridge/opentracing/bridge.go:359-377` shows `correlationGetHook` reading `bSpan.extraBaggageItems`, checking `len(items)`, and iterating `for k, v := range items` without locking. The finding evidence also identifies `api/correlation/context.go:160-165` as the path where `correlation.MapFromContext` invokes the get hook, allowing a read path to run concurrently with baggage writes.\n\nBecause Go maps are not safe for concurrent read/write access, concurrent `SetBaggageItem` and `correlation.MapFromContext` calls on the same hooked `bridgeSpan` can terminate the process with a runtime error such as `fatal error: concurrent map read and map write` or `fatal error: concurrent map iteration and map write`.\n\n### PoC\n\n[validation-artifact.zip](https://github.com/user-attachments/files/27494614/validation-artifact.zip)\n\n\nThe validation artifact contains a PoC at `validation-artifact.tar:validation_poc_concurrent_map.go` and supporting notes at `validation-artifact.tar:validation_poc_README.txt`.\n\nUse a checkout of `pellared/opentelemetry-go` at commit `8cddf30` with Go module downloads enabled. The local validation environment could not complete the run because `GOPROXY=off` blocked dependency resolution; that blocked output is saved in `validation-artifact.tar:validation_poc_run.log`.\n\nCommands:\n\n```sh\ncd /path/to/opentelemetry-go\ngit checkout 8cddf30\ntar -xOf /path/to/finding-directory/validation-artifact.tar validation_poc_concurrent_map.go > ./validation_poc_concurrent_map.go\nGOPROXY=https://proxy.golang.org,direct go run ./validation_poc_concurrent_map.go\n```\n\nThe PoC starts a `BridgeTracer`, creates a span, installs correlation hooks with `tracer.NewHookedContext(ctx)`, initializes baggage once, then runs one goroutine repeatedly calling `span.SetBaggageItem(...)` while another repeatedly calls `otelcorrelation.MapFromContext(ctx)`. A vulnerable build is expected to terminate with a Go runtime concurrent map access error, for example:\n\n```text\nfatal error: concurrent map read and map write\n```\n\nor:\n\n```text\nfatal error: concurrent map iteration and map write\n```\n\n\n### Impact\n\nThis is a race condition / improper synchronization vulnerability in a shared Go map. Applications using the OpenTelemetry OpenTracing bridge with correlation hooks can crash if the same `bridgeSpan` is accessed concurrently, with one execution path setting baggage and another propagating correlation baggage. The practical impact is denial of service for the affected application process; exposure depends on whether application request handling or internal concurrency can trigger those operations on the same span.","format":"markdown","source":"ghsa"},{"lang":"en","text":"OpenTelemetry-Go: Unsynchronized baggage map can panic under concurrent access in go.opentelemetry.io/otel/bridge/opentracing","format":"markdown","source":"go"},{"lang":"es","text":"OpenTelemetry-Go es la implementación de Go de OpenTelemetry. Desde la versión 0.11.0 hasta la 1.44.0, el bridgeSpan del bridge de OpenTracing contiene un mapa extraBaggageItems sin sincronizar que puede causar un panic. Debido a que los mapas de Go no son seguros para el acceso concurrente de lectura y escritura, las llamadas concurrentes a SetBaggageItem y correlation.MapFromContext en el mismo bridgeSpan enganchado pueden desencadenar un error de tiempo de ejecución fatal -como lectura y escritura concurrente de mapas o iteración y escritura concurrente de mapas-, terminando el proceso y causando denegación de servicio. Este problema está solucionado en la versión 1.45.0.","source":"nvd"}],"published":"2026-08-20T17:26:14.000Z","modified":"2026-10-12T15:10:00.207Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-362","CWE-667"],"affected":[{"ranges":[{"version":">= 0.11.0, < 1.45.0","status":"affected"}],"vendor":"open-telemetry","product":"opentelemetry-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.11.0","status":"affected","fixed":"1.45.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/bridge/opentracing","purl":"pkg:golang/go.opentelemetry.io/otel/bridge/opentracing","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.11.0","status":"affected","fixed":"1.45.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/bridge/opentracing","purl":"pkg:golang/go.opentelemetry.io/otel/bridge/opentracing","source":"go"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-42cj-99w8-cp2p","tags":["advisory","exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go/pull/8693","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go/commit/93a693edeed0e07ce5ebd1dfe67af42d1e2055d8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.45.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-27T14:18:31.891Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45404","url":"https://www.cve.org/CVERecord?id=CVE-2026-45404","licence":"CVE Terms of Use","modified":"2026-08-27T14:18:58.878Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-42cj-99w8-cp2p","url":"https://github.com/advisories/GHSA-42cj-99w8-cp2p","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:12.925Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6258","url":"https://pkg.go.dev/vuln/GO-2026-6258","licence":"CC-BY-4.0","modified":"2026-09-02T22:10:54.390Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45404","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45404","licence":"Public domain","modified":"2026-10-12T15:10:00.207Z"}],"updatedAt":"2026-11-25T22:59:35.079Z","epss":{"score":0.00186,"percentile":0.08627,"date":"2026-12-01T12:00:22.000Z"}}