7.5high
dd-trace-go: Improper parsing of W3C baggage headers may lead to DoS
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.44% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-74j5-xf3v-crq8GO-2026-6000
Description
Datadog dd-trace-go is a Go client library for Datadog application performance monitoring, profiling, and security monitoring. Prior to 2.8.1, Datadog tracing libraries that implement W3C baggage propagation parse incoming baggage HTTP headers without enforcing DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES limits on the extract path. A remote, unauthenticated attacker can send a request whose baggage header contains an arbitrarily large number of comma-separated key-value pairs or a single very large value, causing unbounded CPU and memory consumption and enabling a remote denial of service against HTTP services with baggage propagation enabled. This issue is fixed in version 2.8.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| DataDog dd-trace-go | < 2.8.1 | CVE List |
| github.com/DataDog/dd-trace-go (Go) | up to 1.24.1, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/DataDog/dd-trace-go/v2 (Go) | before 2.8.1 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Datadog dd-trace-go is a Go client library for Datadog application performance monitoring, profiling, and security monitoring. Prior to 2.8.1, Datadog tracing libraries that implement W3C baggage propagation parse incoming baggage HTTP headers without enforcing DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES limits on the extract path. A remote, unauthenticated attacker can send a request whose baggage header contains an arbitrarily large number of comma-separated key-value pairs or a single very large value, causing unbounded CPU and memory consumption and enabling a remote denial of service against HTTP services with baggage propagation enabled. This issue is fixed in version 2.8.1.
GitHub Advisory Database
Impact
Datadog tracing libraries that implement W3C baggage propagation parse incoming baggage HTTP headers without enforcing item-count or byte-size limits on the extract path. The DD_TRACE_BAGGAGE_MAX_ITEMS (default 64) and DD_TRACE_BAGGAGE_MAX_BYTES (default 8192) limits were applied only to baggage injection, not extraction. A remote, unauthenticated attacker can send a request whose baggage header contains an arbitrarily large number of comma-separated key-value pairs (or a single very large value). The tracer allocates a hash-map entry for each pair on every request, causing unbounded CPU and memory consumption and enabling a remote Denial of Service against any HTTP service that has the baggage propagation style enabled. The baggage propagation style is enabled by default in most affected tracers, so any internet-facing service that has been instrumented with an affected tracer version is exposed unless the propagation style has been explicitly narrowed.
Patches
This is resolved in version 2.8.1 and later of the dd-trace-go library.
Workarounds
If users cannot upgrade immediately:
- Disable
baggageextraction by removingbaggagefromDD_TRACE_PROPAGATION_STYLE(orDD_TRACE_PROPAGATION_STYLE_EXTRACTif set independently). - Cap the maximum HTTP request header size at an upstream proxy or web server (for example, Apache
LimitRequestFieldSize, Nginxlarge_client_header_buffers, Envoymax_request_headers_kb).
Resources
Related upstream advisories: opentelemetry-go GHSA-mh2q-q3fh-2475 opentelemetry-dotnet GHSA-g94r-2vxg-569j
Go Vulnerability Database
Improper parsing of W3C baggage headers may lead to DoS in github.com/DataDog/dd-trace-go
NVD (es)
Datadog dd-trace-go es una biblioteca cliente Go para la monitorización del rendimiento de aplicaciones, la elaboración de perfiles y la monitorización de seguridad de Datadog. Antes de la versión 2.8.1, las bibliotecas de rastreo de Datadog que implementan la propagación de equipaje W3C analizan los encabezados HTTP de equipaje entrantes sin aplicar los límites DD_TRACE_BAGGAGE_MAX_ITEMS o DD_TRACE_BAGGAGE_MAX_BYTES en la ruta de extracción. Un atacante remoto no autenticado puede enviar una solicitud cuyo encabezado de equipaje contiene un número arbitrariamente grande de pares clave-valor separados por comas o un único valor muy grande, causando un consumo ilimitado de CPU y memoria y permitiendo una denegación de servicio remota contra servicios HTTP con la propagación de equipaje habilitada. Este problema está solucionado en la versión 2.8.1.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-50274 changed 2026-07-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-74j5-xf3v-crq8 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6000 changed 2026-07-29 | CC-BY-4.0 |
| NVD | CVE-2026-50274 changed 2026-10-24 | Public domain |