{"id":"CVE-2026-41178","aliases":["CVE-2026-41178","GHSA-5wrp-cwcj-q835","GO-2026-5158"],"related":["CGA-594m-3qrh-m7qf"],"kind":"vulnerability","state":"published","title":"OpenTelemetry-Go's baggage parsing no longer caps raw header length","summary":"OpenTelemetry-Go is the Go implementation of OpenTelemetry. Versions 1.41.0 and 1.43.0 removed raw-length rejection and it causes `Parse` to process arbitrarily large/invalid baggage headers and log errors, enabling DoS via oversized inputs. Versions 1.42.0 and 1.44.0 fix the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenTelemetry-Go is the Go implementation of OpenTelemetry. Versions 1.41.0 and 1.43.0 removed raw-length rejection and it causes `Parse` to process arbitrarily large/invalid baggage headers and log errors, enabling DoS via oversized inputs. Versions 1.42.0 and 1.44.0 fix the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nhttps://github.com/open-telemetry/opentelemetry-go/pull/7880 removed raw-length rejection and it causes `Parse` to process arbitrarily large/invalid baggage headers and log errors, enabling DoS via oversized inputs.\n\n\n### Details\n\nThe commit removes the upfront baggage-string length check and the per-member size guard in parsing. `Parse` now walks the entire input with `strings.SplitSeq` and skips invalid members while continuing to process the rest. For very large or malformed `baggage` headers, the parser still fully tokenizes and percent-decodes each member, and errors are forwarded to the global error handler (default logging). This lets a remote client send oversized/invalid headers to trigger excessive CPU/memory work and potentially large log output before any size limit is enforced, creating a denial-of-service risk in services that do not already enforce strict header size limits.\n\nSummary:\n- In `baggage/baggage.go`, `parseMember` performs full parsing and `PathUnescape` on the entire member without any size guard, amplifying work for large inputs. `Parse` no longer checks bStr length and continues processing invalid members, so oversized/invalid headers are fully parsed instead of being rejected early.\n- In `propagation/baggage.go`, parsing errors from attacker-controlled headers are sent to the global error handler (default logging), which can amplify oversized-input impact.\n\n### PoC\n\n[baggage_dos_poc.tar.gz](https://github.com/user-attachments/files/26677819/baggage_dos_poc.tar.gz)\n\n### Impact\n\nThe issue is reachable through standard propagation parsing (in-scope) and can be exploited remotely to cause CPU/log amplification, but the impact is availability-only and bounded by transport header limits and configurable error handling, supporting a medium severity rather than high/critical.\n\n`baggage.Parse` iterates over all list members with `strings.SplitSeq` and skips invalid members while continuing, without a raw-length guard. `parseMember` performs full parsing and `PathUnescape` on each member, and `propagation.Baggage` forwards parsing errors to the global error handler, which logs by default. A remote client can therefore send oversized/invalid baggage headers that bypass the 8KB limit for valid members, causing extra CPU work and large log output, resulting in availability/log amplification in services that accept large headers and use the default handler.\n\nAssumptions:\n\n- An instrumented service uses the OpenTelemetry baggage propagator for inbound request parsing.\n- Attackers can send oversized or malformed baggage headers that pass the hosting server/proxy header size limits.\n- The default error handler is used or logs are otherwise emitted for parse errors.\n- Inbound request parsing with propagation.Baggage\n- Oversized/invalid baggage headers accepted by the HTTP/gRPC stack\n- Error handler not suppressing parse errors","format":"markdown","source":"ghsa"},{"lang":"en","text":"Opentelemetry-go's baggage parsing no longer caps raw header length in go.opentelemetry.io/otel","format":"markdown","source":"go"},{"lang":"es","text":"OpenTelemetry-Go es la implementación en Go de OpenTelemetry. Las versiones 1.41.0 y 1.43.0 eliminaron el rechazo por longitud bruta y esto provoca que 'Parse' procese encabezados de baggage arbitrariamente grandes/inválidos y registre errores, lo que permite DoS mediante entradas sobredimensionadas. Las versiones 1.42.0 y 1.44.0 corrigen el problema.","source":"nvd"}],"published":"2026-05-28T17:04:19.000Z","modified":"2026-09-10T03:51:04.741Z","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:N/A:L","score":5.3,"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:N/A:L","score":5.3,"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:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"version":"= 1.41.0","status":"affected"},{"version":"= 1.43.0","status":"affected"}],"vendor":"open-telemetry","product":"go.opentelemetry.io/otel/baggage","source":"cvelist"},{"ranges":[{"version":"= 1.41.0","status":"affected"},{"version":"= 1.43.0","status":"affected"}],"vendor":"open-telemetry","product":"go.opentelemetry.io/otel/propagation","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.41.0","status":"affected","fixed":"1.42.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/baggage","purl":"pkg:golang/go.opentelemetry.io/otel/baggage","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.41.0","status":"affected","fixed":"1.42.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/propagation","purl":"pkg:golang/go.opentelemetry.io/otel/propagation","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.43.0","status":"affected","fixed":"1.44.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/baggage","purl":"pkg:golang/go.opentelemetry.io/otel/baggage","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.43.0","status":"affected","fixed":"1.44.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/propagation","purl":"pkg:golang/go.opentelemetry.io/otel/propagation","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.41.0","status":"affected","fixed":"1.42.0"},{"type":"semver","introduced":"1.43.0","status":"affected","fixed":"1.44.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel","purl":"pkg:golang/go.opentelemetry.io/otel","source":"go"},{"ranges":[{"status":"affected","fixed":"1.42.0"},{"status":"affected","version":"1.43.0"}],"vendor":"opentelemetry","product":"opentelemetry","cpe":"cpe:2.3:a:opentelemetry:opentelemetry:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-5wrp-cwcj-q835","tags":["advisory","exploit","issue-tracking","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go/pull/7880","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41178","tags":["advisory"],"sources":["ghsa"]},{"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-06-04T15:46:06.715Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41178","url":"https://www.cve.org/CVERecord?id=CVE-2026-41178","licence":"CVE Terms of Use","modified":"2026-06-04T15:46:11.923Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5wrp-cwcj-q835","url":"https://github.com/advisories/GHSA-5wrp-cwcj-q835","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.741Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5158","url":"https://pkg.go.dev/vuln/GO-2026-5158","licence":"CC-BY-4.0","modified":"2026-07-27T21:59:42.805Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41178","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41178","licence":"Public domain","modified":"2026-07-22T20:10:00.127Z"}],"updatedAt":"2026-11-25T22:59:23.711Z","epss":{"score":0.00336,"percentile":0.28881,"date":"2026-12-01T12:00:22.000Z"}}