{"id":2636,"cve":"CVE-2026-114603","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-114603\/","cwe":"CWE-400","cwe_number":400,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/400","cvss_score":5.3,"published":"2026-10-22","owasp":"A06 Vulnerable and Outdated Components","odc":"Timing\/Serialization","cdc":"Timing Issues","category":"Resource Management","subcategory":"Resource Exhaustion","scope":"Remote","impact":"Denial of Service (DoS)","summary":"CPU\u2011intensive regex backtracking in TraceState.from_header leads to DoS.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-114603\/","description":"OpenTelemetry Python provides the Python API and SDK for OpenTelemetry. Prior to 1.45.1, the opentelemetry-api function TraceState.from_header in opentelemetry\/trace\/span.py, reached through TraceContextTextMapPropagator.extract, parses inbound W3C tracestate headers with an unbounded optional-whitespace regular expression. A malformed header containing a long run of spaces or tabs without a following comma causes quadratic backtracking before the member-count limit is applied. Services using the default W3C Trace Context propagator can therefore spend excessive CPU time on one unauthenticated request when the HTTP server, parser, gateway, or custom carrier accepts a sufficiently large header. The processing can occupy a synchronous worker or delay unrelated requests on the same asynchronous event loop. The impact is limited to availability and does not expose or modify telemetry data or allow code execution. This issue is fixed in version 1.45.1.","solution":"Upgrade OpenTelemetry Python to version\u202f1.45.1\u202for later.","affected_component":"OpenTelemetry Python","fixed_by_upgrading":true,"vulnerable_code":"import re\nfrom typing import List, Tuple\n\n# Simulated simplified version of TraceState.from_header\ndef parse_tracestate(header: str) -> List[Tuple[str, str]]:\n    \"\"\"\n    Parses a W3C tracestate header into a list of (key, value) tuples.\n    Vulnerable to catastrophic backtracking when the header contains\n    a long run of whitespace without commas.\n    \"\"\"\n    # VULNERABLE: unbounded optional-whitespace regex causes quadratic backtracking\n    parts = re.split(r',\\s*', header.strip())\n    entries: List[Tuple[str, str]] = []\n    for part in parts:\n        if not part:\n            continue\n        # Using a regex with an unbounded optional whitespace before the equals sign\n        m = re.match(r'([^=]+)\\s*=\\s*(.*)', part)\n        if m:\n            key, value = m.group(1).strip(), m.group(2).strip()\n            entries.append((key, value))\n    return entries\n","patched_code":"import re\nfrom typing import List, Tuple\n\n# Simulated simplified version of TraceState.from_header\ndef parse_tracestate(header: str) -> List[Tuple[str, str]]:\n    \"\"\"\n    Parses a W3C tracestate header into a list of (key, value) tuples.\n    Fixed by avoiding unbounded optional-whitespace regex that can backtrack.\n    \"\"\"\n    # FIX: use a bounded split and simple string operations to avoid regex backtracking\n    parts = header.strip().split(',')\n    entries: List[Tuple[str, str]] = []\n    for part in parts:\n        if not part:\n            continue\n        # Split on the first '=' and strip surrounding whitespace explicitly\n        if '=' in part:\n            key, value = part.split('=', 1)\n            entries.append((key.strip(), value.strip()))\n    return entries\n","payload_needed":true,"payload":null,"payload_status":"model_refused","published_fix":[{"repository":"open-telemetry\/opentelemetry-python","commit_url":"https:\/\/github.com\/open-telemetry\/opentelemetry-python\/commit\/d5224bf4ffdf2aee1b592ad238dcc32ca957f26b","commit_subject":"opentelemetry-api: improve performance of tracestate parsing (#5746) (#5749)","units":[{"file":"opentelemetry-api\/src\/opentelemetry\/trace\/propagation\/tracecontext.py","function":null},{"file":"opentelemetry-api\/src\/opentelemetry\/trace\/propagation\/tracecontext.py","function":"TraceContextTextMapPropagator.extract"},{"file":"opentelemetry-api\/src\/opentelemetry\/trace\/span.py","function":null},{"file":"opentelemetry-api\/src\/opentelemetry\/trace\/span.py","function":"TraceState.from_header"}]}],"references":null}