cve.bz

CVE-2023-45142 opentelemetry opentelemetry

7.5 highEPSS 1.6%Fix available

High (7.5) in opentelemetry opentelemetry. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp 0.44.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-45142 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-45142?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-45142?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-45142 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opentelemetry:opentelemetrybefore 0.44.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rcjv-mgp8-qvmrGogo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp<0.44.00.44.0
GHSA-rcjv-mgp8-qvmrGogo.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful<0.44.00.44.0
GHSA-rcjv-mgp8-qvmrGogo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin<0.44.00.44.0
GHSA-rcjv-mgp8-qvmrGogo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux<0.44.00.44.0
GHSA-rcjv-mgp8-qvmrGogo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho<0.44.00.44.0
GHSA-rcjv-mgp8-qvmrGogo.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron<0.44.00.44.0
GHSA-rcjv-mgp8-qvmrGogo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace<0.44.00.44.0
GO-2023-2113Gogo.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful<0.44.00.44.0
GO-2023-2113Gogo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin<0.44.00.44.0
GO-2023-2113Gogo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux<0.44.00.44.0
GO-2023-2113Gogo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho<0.44.00.44.0
GO-2023-2113Gogo.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron<0.44.00.44.0
GO-2023-2113Gogo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace<0.44.00.44.0
GO-2023-2113Gogo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp<0.44.00.44.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu25.10, 26.04:LTS, 26.10golang-opentelemetry-contribno fix listedUBUNTU-CVE-2023-45142
Red Hatceph_storage:5.3::el8ceph, cephadm, librbd1 and 67 more2:16.2.10-266.el8cpRHSA-2024:4118
Red Hatceph_storage:5.3::el8ceph-ansible0:6.0.28.8-1.el8cpRHSA-2024:4118
Red Hatceph_storage:5.3::el9ceph, cephadm, librbd1 and 50 more2:16.2.10-266.el9cpRHSA-2024:4118
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 15 morecontainerd1.7.21-150000.117.1SUSE-SU-2024:3221-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 15 moredocker26.1.5_ce-150000.212.1SUSE-SU-2024:4360-1
SUSELinux Enterprise Module for Containers 12containerd1.7.21-16.94.1SUSE-SU-2024:3188-1
SUSELinux Enterprise Module for Package Hub 15 SP5, Linux Enterprise Module for Package Hub 15 SP6, Manager Proxy Module 4.3golang-github-prometheus-prometheus2.45.6-150100.4.20.1SUSE-SU-2024:3288-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5docker26.1.5_ce-98.120.1SUSE-SU-2024:4319-1
SUSELinux Micro 6.0containerd1.7.21-1.1SUSE-SU-2025:20091-1
SUSELinux Micro 6.0docker26.1.5_ce-1.1SUSE-SU-2025:20110-1
SUSELinux Micro 6.1docker27.5.1_ce-slfo.1.1_1.1SUSE-SU-2025:20259-1
SUSEManager Client Tools 12golang-github-prometheus-prometheus2.45.6-1.53.1SUSE-SU-2024:3266-1
SUSEManager Client Tools 12rhnlib5.0.4-21.52.1SUSE-SU-2024:3266-1
SUSEManager Client Tools 12spacecmd5.0.9-38.147.1SUSE-SU-2024:3266-1
SUSEManager Client Tools 12uyuni-tools0.1.21-1.8.1SUSE-SU-2024:3266-1
6 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5caddy2.8.4-bp155.2.3.1openSUSE-SU-2024:0211-1
openSUSELeap 15.5, Leap 15.6golang-github-prometheus-prometheus2.45.6-150100.4.20.1SUSE-SU-2024:3288-1
openSUSELeap 15.5, Leap 15.6spacecmd5.0.9-150000.3.124.1SUSE-SU-2024:3267-1
openSUSELeap 15.5, Leap 15.6, Leap Micro 5.5containerd1.7.21-150000.117.1SUSE-SU-2024:3221-1
openSUSELeap 15.5, Leap 15.6, Leap Micro 5.5docker26.1.5_ce-150000.212.1SUSE-SU-2024:4360-1
openSUSELeap 15.6caddy2.8.4-bp156.3.3.1openSUSE-SU-2024:0220-1
openSUSETumbleweedcaddy2.7.6-1.1openSUSE-SU-2024:13495-1
openSUSETumbleweedcontainerd1.7.21-1.1openSUSE-SU-2024:14320-1
openSUSETumbleweeddocker26.1.5_ce-2.1openSUSE-SU-2024:14321-1
openSUSETumbleweedgolang-github-prometheus-prometheus2.53.0-3.1openSUSE-SU-2024:14232-1
openSUSETumbleweedteleport14.1.1-1.1openSUSE-SU-2024:13360-1
Alpinev3.20, v3.21, v3.22 and 2 morek3s1.29.3.1-r0ALPINE-CVE-2023-45142
Azure Linux2cri-tools1.29.0-2AZL-31303
Azure Linux2moby-compose2.17.3-7AZL-33347
Azure Linux2moby-engine24.0.9-10AZL-39972
Azure Linux2opa0.63.0-1AZL-33516
Azure Linux3cert-manager1.12.12-1AZL-34580
Azure Linux3docker-buildx0.14.0-1AZL-35437
Azure Linux3kube-vip-cloud-provider0.0.10-1AZL-34889
Azure Linux3kubernetes1.29.1-2AZL-34900
Azure Linux3opa0.63.0-1AZL-35069
Azure Linux3prometheus2.45.4-1AZL-35116
Azure Linux3prometheus-adapter0.12.0-1AZL-35119

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

While no authentication is required, there are a significant number of non-default factors which prevent widespread exploitation of this flaw. For a service to be affected, all of the following must be true:

* The go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp package must be in use

* Configured a metrics pipeline which uses the otelhttp.NewHandler wrapper function

* No filtering of unknown HTTP methods or user agents at a higher level (such as Content Delivery Network/Load Balancer/etc...)

Due to the limited attack surface, Red Hat Product Security rates the impact as Moderate.

Red Hat's mitigation

As a workaround to stop being affected otelhttp.WithFilter() can be used.

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.

The other possibility is to disable HTTP metrics instrumentation by passing otelhttp.WithMeterProvider option with noop.NewMeterProvider.

ProductPackageStateAdvisory
Migration Toolkit for Virtualization 2.5migration-toolkit-virtualization/mtv-validation-rhel9:2.5.3-12Fixed 2023-12-05RHBA-2023:7648
OADP-1.3-RHEL-9oadp/oadp-mustgather-rhel9:1.3.0-138Fixed 2023-11-28RHSA-2023:7555
OADP-1.3-RHEL-9oadp/oadp-velero-plugin-for-csi-rhel9:1.3.0-34Fixed 2023-11-28RHSA-2023:7555
OADP-1.3-RHEL-9oadp/oadp-velero-restic-restore-helper-rhel9:1.3.0-45Fixed 2023-11-28RHSA-2023:7555
OADP-1.3-RHEL-9oadp/oadp-velero-rhel9:1.3.0-50Fixed 2023-11-28RHSA-2023:7555
OADP-1.3-RHEL-9oadp/oadp-rhel9-operator:1.3.1-40Fixed 2024-04-16RHSA-2024:1859
Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9rhacm2/acm-cluster-permission-rhel9:v2.10.5-5Fixed 2024-09-03RHSA-2024:6236
Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9rhacm2/acm-governance-policy-addon-controller-rhel9:v2.10.5-7Fixed 2024-09-03RHSA-2024:6236
Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9rhacm2/acm-governance-policy-framework-addon-rhel9:v2.10.5-8Fixed 2024-09-03RHSA-2024:6236
Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9rhacm2/acm-grafana-rhel9:v2.10.5-5Fixed 2024-09-03RHSA-2024:6236
cert-manager Operator for Red Hat OpenShiftcert-manager/cert-manager-operator-rhel9Not affected
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-acmesolver-rhel9Affected
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/lokistack-gateway-rhel8Not affected
Logical Volume Manager Storagelvms4/lvms-must-gather-rhel8Will not fix
Logical Volume Manager Storagelvms4/lvms-rhel9-operatorAffected
Logical Volume Manager Storagelvms4/topolvm-rhel8Not affected
OpenShift API for Data Protectionoadp/oadp-kubevirt-velero-plugin-rhel8Will not fix
OpenShift API for Data Protectionoadp/oadp-velero-plugin-for-aws-rhel8Will not fix
306 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-45142.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON