GHSA-3633-r77q-h3v3

Suggest an improvement
Source
https://github.com/advisories/GHSA-3633-r77q-h3v3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-3633-r77q-h3v3/GHSA-3633-r77q-h3v3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3633-r77q-h3v3
Aliases
Published
2026-10-27T15:37:31Z
Modified
2026-10-27T15:47:10Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Datadog dd-trace-py: ReDoS in URL query string obfuscation
Details

Summary

A regular expression used to obfuscate URL query strings can consume excessive CPU when processing certain attacker-controlled input. This can stall request processing and cause denial of service in applications using affected HTTP tracing integrations.

Details

The default query-string obfuscation pattern can exhibit excessive backtracking. The pattern is applied synchronously when recording HTTP URL metadata, allowing query-string processing to occupy application resources for an extended period.

As a workaround, set both DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP and DD_TRACE_OBFUSCATION_QUERY_STRING_PATTERN to the fixed Python-compatible regex below, then restart the application. Setting both variables covers all affected ddtrace versions, including releases before 1.19.0.

export DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP='(?i)(?:(?:"|%22)?)(?:(?:old[-_]?|new[-_]?)?p(?:ass)?w(?:or)?d(?:1|2)?|pass(?:[-_]?phrase)?|secret|(?:api[-_]?|private[-_]?|public[-_]?|access[-_]?|secret[-_]?|app(?:lication)?[-_]?)key(?:[-_]?id)?|token|consumer[-_]?(?:id|key|secret)|sign(?:ed|ature)?|auth(?:entication|orization)?)(?:(?:\s|%20)*(?:=|%3D)[^&]+|(?:"|%22)(?:\s|%20)*(?::|%3A)(?:\s|%20)*(?:"|%22)(?:%2[^2]|%[^2]|[^"%])+(?:"|%22))|(?:bearer(?:\s|%20)+[a-z0-9._\-]+|token(?::|%3A)[a-z0-9]{13}|gh[opsu]_[0-9a-zA-Z]{36}|(?:(?<![\w-])|(?<=%[0-9a-f]{2}))ey[I-L][\w-]+(?:=|%3D)*\.ey[I-L][\w-]+(?:=|%3D)*(?:\.(?:[\w.+/=-]|%3D|%2F|%2B)+)?|-{5}BEGIN(?:[a-z\s]|%20)+PRIVATE(?:\s|%20)KEY-{5}[^\-]+-{5}END(?:[a-z\s]|%20)+PRIVATE(?:\s|%20)KEY(?:-{5})?(?:\n|%0A)?|(?:ssh-(?:rsa|dss)|ecdsa-[a-z0-9]+-[a-z0-9]+)(?:\s|%20|%09)+(?:[a-z0-9/.+]|%2F|%5C|%2B){100,}(?:=|%3D)*(?:(?:\s|%20|%09)+[a-z0-9._-]+)?)'

export DD_TRACE_OBFUSCATION_QUERY_STRING_PATTERN="$DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP"

Proof of concept

Detailed triggering inputs and reproduction steps are omitted from this advisory. The patched version includes regression coverage for the affected behavior.

Impact

Regular expression denial of service (ReDoS) affecting applications that process attacker-controlled URL query strings through the vulnerable obfuscation pattern. Successful exploitation can cause excessive CPU consumption, prolonged request latency, and service unavailability.

The vulnerable processing is enabled by default for affected HTTP integrations that include query strings in URL span tags.

Database specific
{
    "cwe_ids":  [
        "CWE-1333"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-27T15:37:31Z",
    "nvd_published_at":  "2026-10-26T22:16:55Z",
    "severity":  "HIGH"
}
References

Affected packages

PyPI / ddtrace

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.5.0
Fixed
3.19.9

Affected versions

1.*
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.5.5
1.6.0rc1
1.6.0rc2
1.6.0rc3
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.6.5
1.6.6
1.7.0rc1
1.7.0rc2
1.7.0rc3
1.7.0rc4
1.7.0
1.7.1
1.7.2
1.7.3
1.7.4
1.7.5
1.8.0rc1
1.8.0rc2
1.8.0rc3
1.8.0rc4
1.8.0
1.8.1
1.8.2
1.8.3
1.9.0rc2
1.9.0rc3
1.9.0rc4
1.9.0
1.9.1
1.9.2
1.9.3
1.9.4
1.9.5
1.9.6
1.9.7
1.10.0rc1
1.10.0rc2
1.10.0rc3
1.10.0
1.10.1
1.10.2
1.10.3
1.11.0rc1
1.11.0
1.11.1
1.11.2
1.11.3
1.11.4
1.11.5
1.11.6
1.12.0rc1
1.12.0
1.12.1
1.12.2
1.12.3
1.12.4
1.12.5
1.12.6
1.12.7
1.12.8
1.12.9
1.12.10
1.13.0rc1
1.13.0rc2
1.13.0rc3
1.13.0
1.13.1
1.13.2
1.13.3
1.13.4
1.13.5
1.13.6
1.14.0rc1
1.14.0rc2
1.14.0
1.14.1
1.14.2
1.14.3
1.15.0rc1
1.15.0
1.15.1
1.15.2
1.16.0rc1
1.16.0rc2
1.16.0
1.16.1
1.16.2
1.16.3
1.16.4
1.17.0rc1
1.17.0
1.17.1
1.17.2
1.17.3
1.17.4
1.17.5
1.17.6
1.18.0rc1
1.18.0
1.18.1
1.18.2
1.18.3
1.18.4
1.18.5
1.18.6
1.18.7
1.18.8
1.19.0rc1
1.19.0
1.19.1
1.19.2
1.19.3
1.19.4
1.19.5
1.19.6
1.19.7
1.20.0rc1
1.20.0
1.20.1
1.20.2
1.20.3
1.20.4
1.20.5
1.20.6
1.20.7
1.20.8
1.20.9
1.20.10
1.20.11
1.20.12
1.20.13
1.20.14
1.20.15
1.20.16
1.20.17
1.20.18
1.20.19
2.*
2.0.0rc2
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.9
2.0.10
2.1.0rc1
2.1.0rc2
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.1.7
2.1.8
2.1.9
2.2.0rc1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0rc1
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.4.0rc1
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.5.0rc1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.8
2.21.9
2.21.10
2.21.11
2.21.12
3.*
3.0.0rc1
3.0.0rc2
3.0.0rc3
3.0.0
3.1.0rc1
3.1.0
3.1.1
3.2.0rc1
3.2.0
3.2.1rc1
3.2.1rc2
3.2.1
3.2.2
3.2.3
3.3.0rc3
3.3.0
3.3.1
3.3.2
3.3.3
3.4.0rc1
3.4.0rc2
3.4.0
3.4.1
3.4.2
3.5.0rc1
3.5.0
3.5.1
3.6.0rc1
3.6.0
3.7.0rc1
3.7.0rc2
3.7.0
3.7.1
3.7.2
3.8.0rc1
3.8.0rc2
3.8.0rc3
3.8.0
3.8.1
3.9.0rc1
3.9.0rc2
3.9.0
3.9.1
3.9.2
3.9.3
3.9.4
3.10.0rc1
3.10.0rc2
3.10.0rc3
3.10.0
3.10.1
3.10.2
3.10.3
3.10.4
3.11.0rc1
3.11.0rc2
3.11.0rc3
3.11.0
3.11.1
3.11.2
3.11.3
3.11.4
3.12.0rc1
3.12.0rc2
3.12.0rc3
3.12.0
3.12.1
3.12.2
3.12.3
3.12.4
3.12.5
3.12.6
3.12.7
3.12.8
3.12.9
3.13.0rc1
3.13.0
3.13.1
3.13.2
3.13.3
3.13.4
3.14.0rc1
3.14.0rc2
3.14.0
3.14.1
3.14.2
3.14.3
3.14.4
3.15.0rc1
3.15.0
3.15.1
3.16.0rc1
3.16.0rc2
3.16.0
3.16.1
3.16.2
3.16.3
3.16.4
3.17.0rc1
3.17.0
3.17.1
3.17.2
3.17.3
3.18.0rc1
3.18.0rc2
3.18.0
3.18.1
3.19.0rc1
3.19.0
3.19.1
3.19.2
3.19.3
3.19.4
3.19.5
3.19.6
3.19.7
3.19.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-3633-r77q-h3v3/GHSA-3633-r77q-h3v3.json"

PyPI / ddtrace

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
4.15.6

Affected versions

4.*
4.0.0
4.0.1
4.0.2
4.0.3
4.0.4
4.1.0rc2
4.1.0rc3
4.1.0
4.1.1
4.1.2
4.1.3
4.1.4
4.2.0rc1
4.2.0rc2
4.2.0rc3
4.2.0
4.2.1
4.2.2
4.2.3
4.3.0rc1
4.3.0
4.3.1
4.3.2
4.4.0rc1
4.4.0rc2
4.4.0rc3
4.4.0
4.5.0rc1
4.5.0rc2
4.5.0rc3
4.5.0rc4
4.5.0
4.5.1
4.5.2
4.5.3
4.5.4
4.5.5
4.5.6
4.5.7
4.5.8
4.5.9
4.5.10
4.6.0rc1
4.6.0rc2
4.6.0rc3
4.6.0
4.6.1
4.6.2
4.6.3
4.6.4
4.6.5
4.6.6
4.6.7
4.6.8
4.7.0rc1
4.7.0rc2
4.7.0rc3
4.7.0rc4
4.7.0rc5
4.7.0
4.7.1
4.7.2
4.8.0rc1
4.8.0rc2
4.8.0rc3
4.8.0rc4
4.8.0rc5
4.8.0
4.8.1
4.8.2
4.8.3
4.8.4
4.8.5
4.8.6
4.8.7
4.8.8
4.8.9
4.8.10
4.8.11
4.8.12
4.8.13
4.9.0rc1
4.9.0rc2
4.9.0
4.9.1
4.9.2
4.9.3
4.9.4
4.9.5
4.9.6
4.9.7
4.10.0rc1
4.10.0
4.10.1
4.10.2
4.10.3
4.10.4
4.10.5
4.10.6
4.10.7
4.10.8
4.10.9
4.10.10
4.10.11
4.10.12
4.11.0rc1
4.11.0rc2
4.11.0rc3
4.11.0rc4
4.11.0rc5
4.11.0rc6
4.11.0rc7
4.11.0
4.11.1
4.11.2
4.11.3
4.11.4
4.11.5
4.11.6
4.11.7
4.11.8
4.12.0rc1
4.12.0rc2
4.12.0
4.12.1
4.12.2
4.12.3
4.13.0rc1
4.13.0rc2
4.13.0rc3
4.13.0
4.13.1
4.13.2
4.13.3
4.14.0rc1
4.14.0rc2
4.14.0rc3
4.14.0rc4
4.14.0
4.14.1
4.14.2
4.15.0rc1
4.15.0rc2
4.15.0
4.15.1
4.15.2
4.15.3
4.15.4
4.15.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-3633-r77q-h3v3/GHSA-3633-r77q-h3v3.json"