{"answers":{"affected":"21 open source packages ship an affected version, including go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful, go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin and go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-45142 in the wild and no public exploit code.","fix":"Upgrade go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful to 0.44.0 or later.","what":"CVE-2023-45142 is a high-severity denial of service vulnerability in open-telemetry opentelemetry-go-contrib, published on 12 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-45142 and fix it if it is affected.\n\nWhat it is: CVE-2023-45142 is a high-severity denial of service vulnerability in open-telemetry opentelemetry-go-contrib, published on 12 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-45142 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho (Go): affected all versions; fixed in 0.44.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho (Go): affected all versions; fixed in 0.44.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-45142/ (Markdown: https://insights.sbomify.com/CVE-2023-45142/index.md)","id":"CVE-2023-45142","markdown":"https://insights.sbomify.com/CVE-2023-45142/index.md","name":"CVE-2023-45142","record":{"aliases":["AZL-31303","AZL-33347","AZL-33516","AZL-34580","AZL-34889","AZL-34900","AZL-35069","AZL-35116","AZL-35119","AZL-35437","AZL-39972","CLEANSTART-2026-LO55255","CLEANSTART-2026-WY63823","GHSA-rcjv-mgp8-qvmr","GO-2023-2113","MINI-3r5c-gj59-qq3m","MINI-5p26-qmxg-8743","MINI-6wpv-j2c4-g55m","MINI-ffvg-hhxx-mf77","MINI-g7fh-v9h2-x522","MINI-j2rf-hq9p-q8rq","MINI-pq7v-2926-5jch","MINI-px4f-gj5c-p9wj","UBUNTU-CVE-2023-45142","openSUSE-SU-2024:13495-1","openSUSE-SU-2024:14232-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenTelemetry Go library","requires_auth":"none","summary":"Attackers can cause memory exhaustion and denial of service by sending requests with unbounded User-Agent or HTTP method values to applications using the otelhttp handler.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"opentelemetry","vendor":"opentelemetry"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"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.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OpenTelemetry-Go Contrib has DoS vulnerability in otelhttp due to unbound cardinality metrics","id":"CVE-2023-45142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":23,"n_references":9,"next":{"headline":"Undici's cookie header not cleared on cross-origin redirect in fetch","id":"CVE-2023-45143"},"packages":[{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful","purl":null,"source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful","source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful","source":"GO-2023-2113"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin","purl":null,"source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin","source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin","source":"GO-2023-2113"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux","purl":null,"source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux","source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux","source":"GO-2023-2113"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho","purl":null,"source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho","source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho","source":"GO-2023-2113"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron","purl":null,"source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron","source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron","source":"GO-2023-2113"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace","purl":null,"source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace","source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace","source":"GO-2023-2113"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","purl":null,"source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","source":"GHSA-rcjv-mgp8-qvmr"},{"ecosystem":"Go","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","source":"GO-2023-2113"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.7.6-1.1"],"introduced":["0"],"last_affected":[],"package":"caddy","purl":"pkg:rpm/opensuse/caddy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13495-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.53.0-3.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/opensuse/golang-github-prometheus-prometheus\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14232-1"}],"prev":{"headline":"CSRF Token Validation Vulnerability in fiber","id":"CVE-2023-45141"},"products":["opentelemetry-go-contrib"],"published":"2023-10-12","related":[{"cvss_score":7.5,"headline":"OpenTelemetry-Go multi-value `baggage` header extraction causes excessive allocations (remote dos amplification)","id":"CVE-2026-29181","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.5,"headline":"DoS vulnerability in otelgrpc (uncontrolled resource consumption) due to unbound cardinality metrics","id":"CVE-2023-47108","kev_date_added":null,"published":"2023-11-10"},{"cvss_score":7.5,"headline":"opentelemetry-instrumentation Denial of Service vulnerability due to unbound cardinality metrics","id":"CVE-2023-43810","kev_date_added":null,"published":"2023-10-06"},{"cvss_score":7.3,"headline":"opentelemetry-go: BSD kenv command not using absolute path enables PATH hijacking","id":"CVE-2026-39883","kev_date_added":null,"published":"2026-04-08"},{"cvss_score":7,"headline":"OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking","id":"CVE-2026-24051","kev_date_added":null,"published":"2026-02-02"},{"cvss_score":5.9,"headline":"OpenTelemetry dotnet: Potential memory exhaustion via unbounded pooled-list sizing in Jaeger exporter conversion path","id":"CVE-2026-41078","kev_date_added":null,"published":"2026-04-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-02-13","vendors":["open-telemetry"]},"summary":"Attackers can cause memory exhaustion and denial of service by sending requests with unbounded User-Agent or HTTP method values to applications using the otelhttp handler.","url":"https://insights.sbomify.com/CVE-2023-45142/"}