Vulnerability Description
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`.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Opentelemetry | Opentelemetry | < 0.46.0 |
Related Weaknesses (CWE)
References
- https://github.com/open-telemetry/opentelemetry-go-contrib/blob/9d4eb7e7706038b0Product
- https://github.com/open-telemetry/opentelemetry-go-contrib/blob/instrumentation/Product
- https://github.com/open-telemetry/opentelemetry-go-contrib/commit/04c5dcbb5b35f1
- https://github.com/open-telemetry/opentelemetry-go-contrib/commit/b44dfc9092b157Patch
- https://github.com/open-telemetry/opentelemetry-go-contrib/pull/4322Issue TrackingPatch
- https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GVendor Advisory
- https://pkg.go.dev/go.opentelemetry.io/otel/metric/noop#NewMeterProviderProduct
- https://github.com/open-telemetry/opentelemetry-go-contrib/blob/9d4eb7e7706038b0Product
- https://github.com/open-telemetry/opentelemetry-go-contrib/blob/instrumentation/Product
- https://github.com/open-telemetry/opentelemetry-go-contrib/commit/b44dfc9092b157Patch
- https://github.com/open-telemetry/opentelemetry-go-contrib/pull/4322Issue TrackingPatch
- https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GVendor Advisory
- https://pkg.go.dev/go.opentelemetry.io/otel/metric/noop#NewMeterProviderProduct
FAQ
What is CVE-2023-47108?
CVE-2023-47108 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 lab...
How severe is CVE-2023-47108?
CVE-2023-47108 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-47108?
Check the references section above for vendor advisories and patch information. Affected products include: Opentelemetry Opentelemetry.