CVE-2023-45142: OpenTelemetry-Go Contrib has DoS vulnerability in otelhttp due to unbound cardinality metrics
Vulnerability summary
CVE-2023-45142 is a high (CVSS 7.5) vulnerability in open-telemetry opentelemetry-go-contrib. EPSS estimates a 1.61% chance of exploitation in the next 30 days, higher than 76% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 16 · Related 53Timeline
- 12-10-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.61%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
Increase +0.25 pp
From 1.36% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard112 products
- azure-container-networkingAll versions (No fix recorded)
- azure-vnet-cniAll versions (No fix recorded)
- buildkitd< 0.25.2-r1
- caddy< 2.7.5-r1
- k3s< 1.28.2-r2
Wolfi26 products
- buildkitd< 0.25.2-r1
- caddy< 2.7.5-r1
- k3s< 1.28.2-r2
- kubectl-1.25All versions (No fix recorded)
- kubectl-1.25-defaultAll versions (No fix recorded)
Opensuse2 products
- caddy&distro=openSUSE Tumbleweed< 2.7.6-1.1
- golang-github-prometheus-prometheus&distro=openSUSE Tumbleweed< 2.53.0-3.1
Alpine1 product
- k3s< 1.29.3.1-r0
Go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful1 product
- otelrestful< 0.44.0
Go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin1 product
- otelgin< 0.44.0
Go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux1 product
- otelmux< 0.44.0
Go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo1 product
- otelecho< 0.44.0
Go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v11 product
- otelmacaron< 0.44.0
Go.opentelemetry.io/contrib/instrumentation/net/http1 product
- otelhttp< 0.44.0
Go.opentelemetry.io/contrib/instrumentation/net/http/httptrace1 product
- otelhttptrace< 0.44.0
Open-telemetry1 product
- opentelemetry-go-contrib< 0.44.0
Opentelemetry1 product
- opentelemetry< 0.44.0
Ubuntu1 product
- golang-opentelemetry-contribAll versions (No fix recorded)
14 vendors · 151 products
References
17 links- github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-rcjv-mgp8-qvmrX Refsource CONFIRMAdvisoryWEBVendor Advisory
- github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-5r5m-65gx-7vrhX Refsource MISCAdvisoryWEBVendor Advisory
- github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.19.0X Refsource MISCWEBRelease Notes
- github.com/open-telemetry/opentelemetry-go/blob/v1.12.0/semconv/internal/v2/http.goX Refsource MISCWEBProduct