VDB

CVE-2023-45142

CVE-2023-45142 PUBLISHED CVSS 9.300000190734863 CRITICAL

Record from NVD · Published October 12, 2023

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.

EPSS 1.61% · 76.6th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulGo Modules0.44.0
go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxGo Modules0.44.0
keda-2.11Wolfi2.11.2-r7
metrics-server-fipsChainguard0.6.4-r3
amazon-cloudwatch-agentAmazon Linux1.300032.3-1.amzn2
kubernetes-1.28Chainguard1.28.9-r0
prometheus-adapterChainguard0.11.1-r4
kubernetes-fips-1.27Chainguard1.27.12-r1
k3sWolfi1.28.2-r2
gatekeeper-3.13Wolfi3.13.3-r1
cert-manager-1.13Wolfi1.13.1-r4
ipfsChainguard0.26.0-r0

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
9.300000190734863
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS Score
1.61%
76.6th percentile

Affected products

VendorProductVersions
opentelemetryopentelemetry0

Timeline

  • Sep 7, 2023 Fix PR Merged
  • Oct 12, 2023 CVE Published
  • Oct 13, 2023 EPSS Score (30 in total, the first dated here)
  • Feb 3, 2026 Security Advisory (130 in total, the first dated here)
  • Aug 2, 2026 Coalition ESS Score
  • Aug 10, 2026 Distribution Patch (119 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-45142
vulnetix vdb fixes CVE-2023-45142

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-45142/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›