CVE-2023-45142
CVE-2023-45142 · OpenTelemetry-Go Contrib has DoS vulnerability in otelhttp due to unbound cardinality metrics
CVSS 7.5 · High · EPSS 1.6% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- opentelemetry-go-contribNo fix published
- k3s Alpine 3.20Update to 1.29.3.1-r0
- k3s Alpine 3.21Update to 1.29.3.1-r0
- k3s Alpine 3.22Update to 1.29.3.1-r0
- and 5 more
Check the installed version:
apk list -I -o k3sAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
OpenTelemetry-Go Contrib is a collection of third-party packages for OpenTelemetry-Go. A handler wrapper out of the box adds labels `http.user_agent` and `http.method` that have unbound cardinality. It leads to the server's potential memory exhaustion when many malicious requests are sent to it. HTTP header User-Agent or HTTP method for requests can be easily set by an attacker to be random and long. The library internally uses `httpconv.ServerRequest` that records every value for HTTP `method` and `User-Agent`. In order to be affected, a program has to use the `otelhttp.NewHandler` wrapper and not filter any unknown HTTP methods or User agents on the level of CDN, LB, previous middleware, etc. Version 0.44.0 fixed this issue when the values collected for attribute `http.request.method` were changed to be restricted to a set of well-known values and other high cardinality attributes were removed. As a workaround to stop being affected, `otelhttp.WithFilter()` can be used, but it requires manual careful configuration to not log certain requests entirely. For convenience and safe usage of this library, it should by default mark with the label `unknown` non-standard HTTP methods and User agents to show that such requests were made but do not increase cardinality. In case someone wants to stay with the current behavior, library API should allow to enable it.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2025:20259-1 · SUSE Linux Micro 6.1 ·
- SUSE-SU-2025:20110-1 · SUSE Linux Micro 6.0 ·
- SUSE-SU-2025:20091-1 · SUSE Linux Micro 6.0 ·
- SUSE-SU-2024:4360-1 · openSUSE Leap 15.5, openSUSE Leap 15.6, openSUSE Leap Micro 5.5, SUSE Enterprise Storage 7.1, SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5, SUSE Linux Enterprise Module for Containers 15 SP5, SUSE Linux Enterprise Module for Containers 15 SP6, SUSE Linux Enterprise Server 15 SP2-LTSS, SUSE Linux Enterprise Server 15 SP3-LTSS, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP2, SUSE Linux Enterprise Server for SAP Applications 15 SP3, SUSE Linux Enterprise Server for SAP Applications 15 SP4 ·
- SUSE-SU-2024:4319-1 · SUSE Linux Enterprise Server 12 SP5-LTSS, SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
- RHSA-2024:4118 · Red Hat ceph storage 5.3 el8, Red Hat ceph storage 5.3 el9 ·
- SUSE-SU-2024:3288-1 · openSUSE Leap 15.5, openSUSE Leap 15.6, SUSE Linux Enterprise Module for Package Hub 15 SP5, SUSE Linux Enterprise Module for Package Hub 15 SP6, SUSE Manager Proxy Module 4.3 ·
- SUSE-SU-2024:3267-1 · openSUSE Leap 15.5, openSUSE Leap 15.6, SUSE Manager Client Tools 15, SUSE Manager Client Tools for SLE Micro 5 ·
- SUSE-SU-2024:3266-1 · SUSE Manager Client Tools 12 ·
- SUSE-SU-2024:3221-1 · openSUSE Leap 15.5, openSUSE Leap 15.6, openSUSE Leap Micro 5.5, SUSE Enterprise Storage 7.1, SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5, SUSE Linux Enterprise Module for Containers 15 SP5, SUSE Linux Enterprise Module for Containers 15 SP6, SUSE Linux Enterprise Server 15 SP2-LTSS, SUSE Linux Enterprise Server 15 SP3-LTSS, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP2, SUSE Linux Enterprise Server for SAP Applications 15 SP3, SUSE Linux Enterprise Server for SAP Applications 15 SP4 ·
- SUSE-SU-2024:3188-1 · SUSE Linux Enterprise Module for Containers 12 ·
- openSUSE-SU-2024:14320-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14321-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14232-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:0220-1 · openSUSE Leap 15.6, SUSE Package Hub 15 SP6 ·
- openSUSE-SU-2024:0211-1 · openSUSE Leap 15.5, SUSE Package Hub 15 SP5 ·
- openSUSE-SU-2024:13360-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:13495-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
opentelemetry-go-contrib
- Versions
- < 0.44.0: Affected
No fix published
k3s Alpine 3.20
- Affected ranges
- ECOSYSTEM: < 1.29.3.1-r0
Update to 1.29.3.1-r0
k3s Alpine 3.21
- Affected ranges
- ECOSYSTEM: < 1.29.3.1-r0
Update to 1.29.3.1-r0
k3s Alpine 3.22
- Affected ranges
- ECOSYSTEM: < 1.29.3.1-r0
Update to 1.29.3.1-r0
k3s Alpine 3.23
- Affected ranges
- ECOSYSTEM: < 1.29.3.1-r0
Update to 1.29.3.1-r0
k3s Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 1.29.3.1-r0
Update to 1.29.3.1-r0
golang-opentelemetry-contrib Ubuntu 25.10
- Versions
- 0.56.0-5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-opentelemetry-contrib Ubuntu 26.10
- Versions
- 0.56.0-5
- 1.43.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-opentelemetry-contrib Ubuntu 26.04 LTS
- Versions
- 0.56.0-5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-rcjv-mgp8-qvmr
- https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-5r5m-65gx-7vrh
- https://github.com/open-telemetry/opentelemetry-go-contrib/pull/4277
- https://github.com/advisories/GHSA-cg3q-j54f-5p7p
- https://github.com/open-telemetry/opentelemetry-go-contrib/blob/5f7e6ad5a49b45df45f61a1deb29d7f1158032df/instrumentation/net/http/otelhttp/handler.go#L63-L65
- https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.19.0
- https://github.com/open-telemetry/opentelemetry-go/blob/38e1b499c3da3107694ad2660b3888eee9c8b896/semconv/internal/v2/http.go#L223
- https://github.com/open-telemetry/opentelemetry-go/blob/v1.12.0/semconv/internal/v2/http.go#L159
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2UTRJ54INZG3OC2FTAN6AFB2RYNY2GAD/
- https://nvd.nist.gov/vuln/detail/CVE-2023-45142