<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Go/Github.com/DataDog/Dd-Trace-Go (&lt;= 1.24.1) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/go/github.com/datadog/dd-trace-go--1.24.1/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 15 Jul 2026 23:06:22 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/go/github.com/datadog/dd-trace-go--1.24.1/feed.xml" rel="self" type="application/rss+xml"/><item><title>Datadog dd-trace-go Library Vulnerability May Lead to Denial of Service</title><link>https://feed.craftedsignal.io/briefs/2026-07-dd-trace-go-dos/</link><pubDate>Wed, 15 Jul 2026 23:06:22 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-dd-trace-go-dos/</guid><description>A vulnerability, CVE-2026-50274, in Datadog's `dd-trace-go` library (versions &lt;= 1.24.1 and v2 &lt; 2.8.1) allows a remote, unauthenticated attacker to cause a Denial of Service (DoS) by sending HTTP requests with oversized W3C baggage headers, leading to unbounded CPU and memory consumption in instrumented services.</description><content:encoded><![CDATA[<p>A high-severity vulnerability, identified as CVE-2026-50274, exists in the Datadog <code>dd-trace-go</code> tracing libraries, specifically versions 1.x (up to 1.24.1) and 2.x (up to 2.8.0). This flaw stems from improper parsing of incoming W3C baggage HTTP headers, where the libraries fail to enforce item-count or byte-size limits during the extraction process. The default limits (DD_TRACE_BAGGAGE_MAX_ITEMS=64, DD_TRACE_BAGGAGE_MAX_BYTES=8192) are only applied during baggage injection, not extraction. This oversight allows a remote, unauthenticated attacker to send specially crafted HTTP requests containing an arbitrarily large number of comma-separated key-value pairs or a single very large value within the baggage header. This malicious input causes the tracer to allocate an excessive number of hash-map entries for each request, leading to unbounded CPU and memory consumption, ultimately resulting in a Denial of Service (DoS) against any HTTP service instrumented with the affected tracer version where baggage propagation is enabled by default.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker crafts an HTTP request targeting an internet-facing service instrumented with a vulnerable <code>dd-trace-go</code> library.</li>
<li>The attacker includes a W3C <code>baggage</code> HTTP header in the request containing an exceptionally large number of comma-separated key-value pairs or a single, very large value.</li>
<li>The vulnerable <code>dd-trace-go</code> library, upon receiving the request, attempts to parse and extract the W3C baggage header.</li>
<li>Due to the lack of item-count or byte-size limits during extraction, the tracer allocates a hash-map entry for each key-value pair.</li>
<li>This unbounded allocation leads to significant and continuous increases in the service's CPU utilization and memory consumption.</li>
<li>The sustained resource exhaustion prevents the service from processing legitimate requests, resulting in a Denial of Service (DoS).</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-50274 leads to a Denial of Service (DoS) condition on affected HTTP services. Attackers can remotely trigger unbounded CPU and memory consumption, causing the service to become unresponsive or crash. This impacts the availability of critical applications that rely on the <code>dd-trace-go</code> library for distributed tracing, potentially disrupting business operations and hindering monitoring capabilities. The vulnerability affects services that have baggage propagation style enabled by default or explicitly configured.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-50274 immediately by upgrading <code>dd-trace-go</code> to version 2.8.1 or later. For those using <code>dd-trace-go</code> 1.x, the recommendation is to migrate to <code>v2.8.1</code> or newer.</li>
<li>If immediate upgrade to <code>dd-trace-go</code> version 2.8.1 is not feasible, disable <code>baggage</code> extraction by removing <code>baggage</code> from the <code>DD_TRACE_PROPAGATION_STYLE</code> environment variable. Alternatively, if <code>DD_TRACE_PROPAGATION_STYLE_EXTRACT</code> is set independently, remove <code>baggage</code> from its value.</li>
<li>As an additional mitigation, cap the maximum HTTP request header size at an upstream proxy or web server. Refer to documentation for Apache (<code>LimitRequestFieldSize</code>), Nginx (<code>large_client_header_buffers</code>), or Envoy (<code>max_request_headers_kb</code>) to configure appropriate limits for HTTP header sizes.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>denial-of-service</category><category>vulnerability</category><category>supply-chain</category><category>go</category><category>datadog</category></item></channel></rss>