opentelemetry-go: AttributeValueLengthLimit is fully bypassed by attribute values composed of valid U+FFFD runes
The AttributeValueLengthLimit span/log-record limit can be bypassed entirely with attribute values that consist of valid U+FFFD (REPLACEMENT CHARACTER) runes. The counting-based truncation introduced by the fix for GHSA-p9f8-wvj8-2fg8 (commit e016a78c9, first released in v1.33.0) has an "optimistic" fast path that skips every U+FFFD without counting it and without falling back to the correct slow path. A value of 1000 U+FFFD runes (3000 bytes) is stored verbatim even with a limit of 5 characters (15 bytes). The same defect affects the attribute truncation paths in go.opentelemetry.io/otel/sdk/trace (sdk/internal/attrnorm), go.opentelemetry.io/otel/sdk/log (sdk/log/internal/attrnorm), and the auto-instrumentation tracer in go.opentelemetry.io/otel/trace (trace/auto.go, introduced in v1.35.0).
Recorded fixes — go.opentelemetry.io/otel/sdk: 1.47.0; go.opentelemetry.io/otel/sdk/log: 1.47.0; 1 more packages. Check your release branch.
Public exploit reference
| Affected range | Recorded fix |
|---|---|
| From 0.9.0 before 1.47.0Semantic versions | 1.47.0 |
Version evidence: OSV · GHSA-q7gw-24fr-5p69
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0.9.0"
},
{
"fixed": "1.47.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}| Affected range | Recorded fix |
|---|---|
| From 0.9.0 before 1.47.0Semantic versions | 1.47.0 |
Version evidence: OSV · GO-2026-6974
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0.9.0"
},
{
"fixed": "1.47.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}