Vulnerability
CVE-2023-45142
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.
282 advisories report this vulnerability, across 10 ecosystems.
Advisories
-
ALAS2-2024-2424
Amazon Linux 2 2017.12 - ALAS2-2024-2424: important priority package update for amazon-cloudwatch-agent
-
ALAS2-2024-2446
Amazon Linux 2 2017.12 - ALAS2-2024-2446: important priority package update for cri-tools
-
ALAS2023-2024-498
Amazon Linux 2023 - ALAS2023-2024-498: Important priority package update for amazon-cloudwatch-agent
-
ALPINE-CVE-2023-45142
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…
- ALPINE-EDGE-CVE-2023-45142
-
AZL-31303
CVE-2023-45142 affecting package cri-tools for versions less than 1.29.0-2
-
AZL-33347
CVE-2023-45142 affecting package moby-compose for versions less than 2.17.3-7
-
AZL-33516
CVE-2023-45142 affecting package opa for versions less than 0.63.0-1
-
AZL-34580
CVE-2023-45142 affecting package cert-manager for versions less than 1.12.12-1
-
AZL-34889
CVE-2023-45142 affecting package kube-vip-cloud-provider for versions less than 0.0.10-1
-
AZL-34900
CVE-2023-45142 affecting package kubernetes for versions less than 1.29.1-2
-
AZL-35069
CVE-2023-45142 affecting package opa for versions less than 0.63.0-1
-
AZL-35116
CVE-2023-45142 affecting package prometheus for versions less than 2.45.4-1
-
AZL-35119
CVE-2023-45142 affecting package prometheus-adapter for versions less than 0.12.0-1
-
AZL-35437
CVE-2023-45142 affecting package docker-buildx for versions less than 0.14.0-1
-
AZL-39972
CVE-2023-45142 affecting package moby-engine for versions less than 24.0.9-10
- CGA-23mw-xhg4-7m5q
- CGA-2588-3rjc-f3vq
- CGA-27pv-9pmh-wwpv
- CGA-293p-wmrp-2vhc
- CGA-29w7-8f99-7fmw
- CGA-2fgj-phx2-4p8p
- CGA-2fjh-h3c2-xp7g
- CGA-2g6w-v755-qv4w
- CGA-2g79-g59g-7733
- CGA-2h65-6xww-mfr6
- CGA-2j5c-4h9c-w7w7
- CGA-2jf3-9g3w-2qwj
- CGA-2p8c-3jq8-jv8g
- CGA-2r84-2h89-7f89
- CGA-2rrm-76p3-r767
- CGA-3259-f2mr-cp3x
- CGA-33qj-7vxr-4xmh
- CGA-33rq-757x-g3q4
- CGA-3475-hcxv-6hjw
- CGA-3478-6g85-x2qp
- CGA-3f39-qw2f-76vh
- CGA-3pr7-qxj4-9845
- CGA-447r-28hg-pwvw
- CGA-459m-f947-9gmw
- CGA-466w-q237-8f7v
- CGA-46cv-v7j7-w8hp
- CGA-473r-r338-835x
- CGA-4c35-m9f3-m467
- CGA-4h99-qrvv-6f8w
- CGA-4hr4-x87p-qxgj
- CGA-4qvw-jm6m-27f9
- CGA-4rmw-j652-767w
- CGA-4v39-2mjc-24h4
- CGA-4vxq-r4jj-grh4
- CGA-4xcg-vf37-xg82
- CGA-4xhm-48xg-f6x7
- CGA-555x-p3hm-x444
- CGA-5gvq-g6g3-f7qr
- CGA-5h9h-q838-xx8h
- CGA-5v8r-m894-6qr7
- CGA-62h7-pqv2-pqm3
- CGA-62r9-ppc6-6h65
- CGA-64h2-xgjc-rjgw
- CGA-65cr-hw6j-hvmx
- CGA-6779-xvvv-fgf7
- CGA-6g8v-hgqq-96j6
- CGA-6p2r-3433-frf4
- CGA-6p6f-2588-272v
- CGA-6q32-9xr7-c6vf
- CGA-6qhh-qqp3-g5qx
- CGA-6qp7-8wwc-xmwh
- CGA-6qv7-p98f-w5r2
- CGA-6x4x-fq6r-q2fw
- CGA-6xcx-m64w-cc4g
- CGA-6xrp-7q7h-wvmw
- CGA-7226-x8fp-hqvc
- CGA-74h6-jxqr-8g44
- CGA-7642-wprw-359c
- CGA-78m6-9f66-9fqh
- CGA-79gq-fxgh-2ffg
- CGA-7cf2-86mq-953f
- CGA-7gvj-3jpf-2939
- CGA-7hvw-g3mv-vgv2
- CGA-7p8p-fg3c-4vvj
- CGA-7qgr-wqrj-5j6q
- CGA-7w34-jx5c-4q6f
- CGA-7wjg-cq5q-9g63
- CGA-827v-85cp-8v9c
- CGA-84wg-h9gp-4wpc
- CGA-85cm-7c4p-w5qm
- CGA-8728-g4hc-xpfh
- CGA-88xq-c8v6-r5fw
- CGA-8c2r-vqhh-2mhf
- CGA-8c37-6jp9-wqmg
- CGA-8fw6-5gwm-pw99
- CGA-8p62-g8gg-p532
- CGA-8pv4-88p5-x54f
- CGA-8px6-6vx8-fq27
- CGA-8qmx-2vgx-35x3
- CGA-92r9-3jrw-x982
- CGA-92xf-576x-5hj6
- CGA-935f-4x8f-7gcg
- CGA-944g-99ch-32c8
- CGA-94fh-2wrg-r47c
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2023-45142.
References
- 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/pull/4277
- https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.19.0
- https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-5r5m-65gx-7vrh
- https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-rcjv-mgp8-qvmr
- 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/