Denial of service in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
Published 27 Jun 2024 · Updated 4 Feb 2026
Is your project on an affected go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=0.37.0 <0.46.0
- Fixed in
- 0.46.0
go get go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc@v0.46.0Details
The grpc Unary Server Interceptor created by the otelgrpc package added the labels net.peer.sock.addr and net.peer.sock.port with unbounded cardinality. This can lead to the server's potential memory exhaustion when many malicious requests are sent. This leads to a denial-of-service.
Is GO-2023-2331 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc, and gives you the command that fixes it.
References
- Advisorygithub.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-8pgv-569h-w5rw
- Fixgithub.com/open-telemetry/opentelemetry-go-contrib/commit/b44dfc9092b157625a5815cb437583cee663333b
- Fixgithub.com/open-telemetry/opentelemetry-go-contrib/pull/4322
- Linkpkg.go.dev/go.opentelemetry.io/otel/metric/noop#NewMeterProvider
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.