Skip to content

CVE-2023-25151 DoS vulnerability for high cardinality metrics in opentelemetry-go-contrib

HighCVSS 7.5 EPSS 0.98%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
Ubuntu

Description

opentelemetry-go-contrib is a collection of extensions for OpenTelemetry-Go. The v0.38.0 release of go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp uses the httpconv.ServerRequest function to annotate metric measurements for the http.server.request_content_length, http.server.response_content_length, and http.server.duration instruments. The ServerRequest function sets the http.target attribute value to be the whole request URI (including the query string)[^1]. The metric instruments do not "forget" previous measurement attributes when cumulative temporality is used, this means the cardinality of the measurements allocated is directly correlated with the unique URIs handled. If the query string is constantly random, this will result in a constant increase in memory allocation that can be used in a denial-of-service attack. This issue has been addressed in version 0.39.0. Users are advised to upgrade. There are no known workarounds for this issue.

Upgrade path

7 packages: 2 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/golang-opentelemetry-contrib(Ubuntu 25.10) = 0.56.0-5; All versions No fix listed No fix yet
ubuntu/golang-opentelemetry-contrib(Ubuntu 26.04) = 0.56.0-5; All versions No fix listed No fix yet
ubuntu/golang-opentelemetry-contrib(Ubuntu 26.10) = 0.56.0-5; = 1.43.0-1; All versions No fix listed No fix yet
go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego(Go) >= 0.38.0, < 0.39.0 0.39.0 Fixed
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp(Go) >= 0.38.0, < 0.39.0 0.39.0 Fixed
linuxfoundation opentelemetry-go contrib = 0.38.0 No fix listed Versions listed
open-telemetry opentelemetry-go-contrib = >= 0.38.0, < 0.39.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp(Go) >= 0.38.0, < 0.39.0 0.39.0
go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego(Go) >= 0.38.0, < 0.39.0 0.39.0
open-telemetry opentelemetry-go-contrib = >= 0.38.0, < 0.39.0 No fix listed
linuxfoundation opentelemetry-go contrib = 0.38.0 No fix listed
ubuntu/golang-opentelemetry-contrib(Ubuntu:26.04) All versions No fix listed
ubuntu/golang-opentelemetry-contrib(Ubuntu:26.10) All versions No fix listed
ubuntu/golang-opentelemetry-contrib(Ubuntu:25.10) All versions No fix listed
ubuntu/golang-opentelemetry-contrib(Ubuntu:25.10) = 0.56.0-5 No fix listed
ubuntu/golang-opentelemetry-contrib(Ubuntu:26.10) = 0.56.0-5 No fix listed
ubuntu/golang-opentelemetry-contrib(Ubuntu:26.10) = 1.43.0-1 No fix listed
ubuntu/golang-opentelemetry-contrib(Ubuntu:26.04) = 0.56.0-5 No fix listed

References