Home/CVE/OpenTelemetry-Go Contrib is a collection of third-party packages for OpenTelemetry-Go. A handler wrapper out of the box
CVE

CVE-2023-45142

OpenTelemetry-Go Contrib is a collection of third-party packages for OpenTelemetry-Go. A handler wrapper out of the box

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.

HIGH · CVSS 7.5 EPSS 0.01159
Schedule remediation
  • CVSS base score ≥ 7.0
Sigma rules0 YARA rules0

Weakness Classification

Affected Products & Versions

1

Affected Packages

9
Language-ecosystem packages (from OSV) tied to this CVE, with the version that fixes it - the dependency-level detail NVD doesn’t carry.
Go github.com/prometheus/client_golang HIGH fixed in 1.11.1
Go go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego HIGH fixed in 0.39.0
Go go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful HIGH fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin HIGH fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux HIGH fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho HIGH fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron HIGH fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace HIGH fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp HIGH fixed in 0.39.0

Scoring & Timeline

7.5
HIGH · CVSS v3.1 · security-advisories@github.com
View on NVD
Attack Vector
Network Adjacent Local Physical
Attack Complexity
Low High
Privileges Required
None Low High
User Interaction
None Required
Scope
Unchanged Changed
Confidentiality
None Low High
Integrity
None Low High
Availability
None Low High
Published to NVD12 Oct 2023 · 05:15 PM
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Vendor Advisories

30
suse-csafSUSE-SU-2025:20259-1
suse-csafSUSE-SU-2025:20091-1
suse-csafSUSE-SU-2025:20110-1
suse-csafSUSE-SU-2024:4360-1
suse-csafSUSE-SU-2024:4319-1
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin