{"answers":{"affected":"5 open source packages ship an affected version, including go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp and go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25151 exists.","fix":"Upgrade go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to 0.39.0 or later.","what":"CVE-2023-25151 is a high-severity denial of service vulnerability in open-telemetry opentelemetry-go-contrib, published on 8 Feb 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-25151 and fix it if it is affected.\n\nWhat it is: CVE-2023-25151 is a high-severity denial of service vulnerability in open-telemetry opentelemetry-go-contrib, published on 8 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25151 exists.\n\nAffected packages and fixed versions:\n- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (Go): affected from 0.38.0; fixed in 0.39.0\n- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (Go): affected from 0.38.0; fixed in 0.39.0\n- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (Go): affected from 0.38.0; fixed in 0.39.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego (Go): affected from 0.38.0; fixed in 0.39.0\n- go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego (Go): affected from 0.38.0; fixed in 0.39.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-25151/ (Markdown: https://insights.sbomify.com/CVE-2023-25151/index.md)","id":"CVE-2023-25151","markdown":"https://insights.sbomify.com/CVE-2023-25151/index.md","name":"CVE-2023-25151","record":{"aliases":["CLEANSTART-2026-DN40757","CLEANSTART-2026-PP55064","GHSA-5r5m-65gx-7vrh","GO-2023-1546","UBUNTU-CVE-2023-25151"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenTelemetry Go contrib","requires_auth":"none","summary":"Attackers can cause memory exhaustion and denial of service by sending requests with unique query strings, affecting applications using the OpenTelemetry Go contrib library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"opentelemetry-go_contrib","vendor":"linuxfoundation"}],"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-400","name":"Uncontrolled Resource Consumption"}],"description":"opentelemetry-go-contrib is a collection of extensions for OpenTelemetry-Go. The v0.38.0 release of `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` uses the `httpconv.ServerRequest` function to annotate metric measurements for the `http.server.request_content_length`, `http.server.response_content_length`, and `http.server.duration` instruments. The `ServerRequest` function sets the `http.target` attribute value to be the whole request URI (including the query string)[^1]. The metric instruments do not \"forget\" previous measurement attributes when `cumulative` temporality is used, this means the cardinality of the measurements allocated is directly correlated with the unique URIs handled. If the query string is constantly random, this will result in a constant increase in memory allocation that can be used in a denial-of-service attack. This issue has been addressed in version 0.39.0. Users are advised to upgrade. There are no known workarounds for this issue.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"DoS vulnerability for high cardinality metrics in opentelemetry-go-contrib","id":"CVE-2023-25151","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":5,"n_references":2,"next":{"headline":"Symbolic Link (Symlink) Following in github.com/pterodactyl/wings","id":"CVE-2023-25152"},"packages":[{"ecosystem":"Go","fixed":["0.39.0"],"introduced":["0.38.0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego","purl":null,"source":"GHSA-5r5m-65gx-7vrh"},{"ecosystem":"Go","fixed":["0.39.0"],"introduced":["0.38.0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego","source":"GHSA-5r5m-65gx-7vrh"},{"ecosystem":"Go","fixed":["0.39.0"],"introduced":["0.38.0"],"last_affected":[],"package":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","purl":null,"source":"GHSA-5r5m-65gx-7vrh"},{"ecosystem":"Go","fixed":["0.39.0"],"introduced":["0.38.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-5r5m-65gx-7vrh"},{"ecosystem":"Go","fixed":["0.39.0"],"introduced":["0.38.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-1546"}],"prev":{"headline":"Document content of files can be obtained through Collabora for files of other users","id":"CVE-2023-25150"},"products":["opentelemetry-go-contrib"],"published":"2023-02-08","related":[],"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":"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["open-telemetry"]},"summary":"Attackers can cause memory exhaustion and denial of service by sending requests with unique query strings, affecting applications using the OpenTelemetry Go contrib library.","url":"https://insights.sbomify.com/CVE-2023-25151/"}