CVE-2026-50277: CWE-770: Allocation of Resources Without Limits or Throttling in DataDog dd-trace-cpp
dd-trace-cpp is the Datadog distributed tracing library for C++. Prior to 2.1.0, dd-trace-cpp parses incoming W3C baggage headers without enforcing DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES on the extraction path, even though those limits are enforced during injection. A remote unauthenticated attacker can send a header containing many comma-separated key-value pairs or one very large value, causing per-request hash-map allocation and unbounded CPU and memory consumption. Baggage extraction is enabled by default in most affected tracers unless baggage is removed from DD_TRACE_PROPAGATION_STYLE or DD_TRACE_PROPAGATION_STYLE_EXTRACT, so affected internet-facing services can be denied service. This issue is fixed in version 2.1.0.
AI Analysis
Technical Summary
The dd-trace-cpp library for distributed tracing in C++ versions before 2.1.0 parses incoming W3C baggage headers without enforcing configured limits (DD_TRACE_BAGGAGE_MAX_ITEMS and DD_TRACE_BAGGAGE_MAX_BYTES) on the extraction path, although these limits are enforced during injection. A remote unauthenticated attacker can exploit this by sending a header with many comma-separated key-value pairs or a very large value, causing excessive hash-map allocations and unbounded CPU and memory usage per request. Baggage extraction is enabled by default in most affected tracers unless explicitly disabled. This vulnerability can result in denial of service on internet-facing services using the affected library. The vulnerability is addressed in dd-trace-cpp version 2.1.0.
Potential Impact
An unauthenticated remote attacker can cause denial of service by sending specially crafted W3C baggage headers that trigger excessive resource consumption (CPU and memory) in dd-trace-cpp versions prior to 2.1.0. This can disrupt service availability for affected applications using the vulnerable library.
Mitigation Recommendations
Upgrade dd-trace-cpp to version 2.1.0 or later, where this issue is fixed. Alternatively, disable baggage extraction by removing baggage from DD_TRACE_PROPAGATION_STYLE or DD_TRACE_PROPAGATION_STYLE_EXTRACT to prevent the vulnerability from being exploitable. No other mitigations are specified.
CVE-2026-50277: CWE-770: Allocation of Resources Without Limits or Throttling in DataDog dd-trace-cpp
Description
dd-trace-cpp is the Datadog distributed tracing library for C++. Prior to 2.1.0, dd-trace-cpp parses incoming W3C baggage headers without enforcing DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES on the extraction path, even though those limits are enforced during injection. A remote unauthenticated attacker can send a header containing many comma-separated key-value pairs or one very large value, causing per-request hash-map allocation and unbounded CPU and memory consumption. Baggage extraction is enabled by default in most affected tracers unless baggage is removed from DD_TRACE_PROPAGATION_STYLE or DD_TRACE_PROPAGATION_STYLE_EXTRACT, so affected internet-facing services can be denied service. This issue is fixed in version 2.1.0.
CVSS v3.1
Score 7.5high
Affected software
DataDog
dd-trace-cpp
pkg:github/datadog/dd-trace-cppRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The dd-trace-cpp library for distributed tracing in C++ versions before 2.1.0 parses incoming W3C baggage headers without enforcing configured limits (DD_TRACE_BAGGAGE_MAX_ITEMS and DD_TRACE_BAGGAGE_MAX_BYTES) on the extraction path, although these limits are enforced during injection. A remote unauthenticated attacker can exploit this by sending a header with many comma-separated key-value pairs or a very large value, causing excessive hash-map allocations and unbounded CPU and memory usage per request. Baggage extraction is enabled by default in most affected tracers unless explicitly disabled. This vulnerability can result in denial of service on internet-facing services using the affected library. The vulnerability is addressed in dd-trace-cpp version 2.1.0.
Potential Impact
An unauthenticated remote attacker can cause denial of service by sending specially crafted W3C baggage headers that trigger excessive resource consumption (CPU and memory) in dd-trace-cpp versions prior to 2.1.0. This can disrupt service availability for affected applications using the vulnerable library.
Mitigation Recommendations
Upgrade dd-trace-cpp to version 2.1.0 or later, where this issue is fixed. Alternatively, disable baggage extraction by removing baggage from DD_TRACE_PROPAGATION_STYLE or DD_TRACE_PROPAGATION_STYLE_EXTRACT to prevent the vulnerability from being exploitable. No other mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-04T16:26:05.985Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aac51eb55bf5e2cf5e0e5bb
Added to database: 09/17/2026, 20:47:39 UTC
Last enriched: 09/17/2026, 21:01:37 UTC
Last updated: 09/17/2026, 23:15:37 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.