{"id":"CVE-2023-47108","published":"2023-11-10T18:31:33Z","modified":"2025-10-28T18:22:47Z","title":"DoS vulnerability in otelgrpc (uncontrolled resource consumption) due to unbound cardinality metrics","vendor":"open-telemetry","product":"opentelemetry-go-contrib","tier":"tail","description":{"text":"OpenTelemetry-Go Contrib is a collection of third-party packages for OpenTelemetry-Go. Starting in version 0.37.0 and prior to version 0.46.0, the grpc Unary Server Interceptor out of the box adds labels `net.peer.sock.addr` and `net.peer.sock.port` that have unbound cardinality. It leads to the server's potential memory exhaustion when many malicious requests are sent. An attacker can easily flood the peer address and port for requests. Version 0.46.0 contains a fix for this issue. As a workaround to stop being affected, a view removing the attributes can be used. The other possibility is to disable grpc metrics instrumentation by passing `otelgrpc.WithMeterProvider` option with `noop.NewMeterProvider`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02497,"percentile":0.85079,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-8pgv-569h-w5rw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/open-telemetry/opentelemetry-go-contrib/pull/4322","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-telemetry/opentelemetry-go-contrib/commit/04c5dcbb5b35f14b4e6793b245919c72addbc7d0","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-telemetry/opentelemetry-go-contrib/commit/b44dfc9092b157625a5815cb437583cee663333b","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-telemetry/opentelemetry-go-contrib/blob/9d4eb7e7706038b07d33f83f76afbe13f53d171d/instrumentation/google.golang.org/grpc/otelgrpc/interceptor.go#L327","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-telemetry/opentelemetry-go-contrib/blob/instrumentation/google.golang.org/grpc/otelgrpc/v0.45.0/instrumentation/google.golang.org/grpc/otelgrpc/config.go#L138","tags":["x_refsource_MISC"]},{"url":"https://pkg.go.dev/go.opentelemetry.io/otel/metric/noop#NewMeterProvider","tags":["x_refsource_MISC"]}],"priority":{"score":22.3,"factors":[{"name":"EPSS percentile","points":17.02},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"open-telemetry","affectedVersions":[{"vendor":"open-telemetry","product":"opentelemetry-go-contrib","versions":[">= 0.37.0, < 0.46.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-03T17:26:16.403179Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc","vulnerableRanges":[">=0.37.0, <0.46.0"],"patched":["0.46.0"],"from":["GHSA-8pgv-569h-w5rw","GO-2023-2331"],"provenance":"source"}],"summary":{"text":"The otelgrpc grpc Unary Server Interceptor in opentelemetry-go-contrib (versions 0.37.0 through before 0.46.0, from the open-telemetry project) adds the unbounded-cardinality labels net.peer.sock.addr and net.peer.sock.port by default, which causes resource consumption on the server. An unauthenticated remote attacker with network access to the gRPC server can exhaust its memory by sending a large volume of requests from varying peer addresses and ports, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:03:28Z"},"euvd":{"id":"EUVD-2023-2927","exploited":false,"provenance":"source"}}