{"cve":"CVE-2023-25151","nvd":{"published":"2023-02-08T20:15:24.620","modified":"2026-06-17T05:40:47.217","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400"],"references":["https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-5r5m-65gx-7vrh","https://github.com/open-telemetry/opentelemetry-go/blob/v1.12.0/semconv/internal/v2/http.go#L159","https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-5r5m-65gx-7vrh","https://github.com/open-telemetry/opentelemetry-go/blob/v1.12.0/semconv/internal/v2/http.go#L159"],"products":["linuxfoundation:opentelemetry-go_contrib"],"source":"nvd","synced_at":"2026-10-19T21:37:38.595364862+00:00"},"epss":{"cve":"CVE-2023-25151","score":0.00973,"percentile":0.6205,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5r5m-65gx-7vrh","url":"https://osv.dev/vulnerability/GHSA-5r5m-65gx-7vrh","summary":"otelhttp and otelbeego have DoS vulnerability for high cardinality metrics","modified":"2026-02-04T04:31:19.108693Z","packages":[{"ecosystem":"Go","name":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","ranges":[">=0.38.0 <0.39.0"],"fixed":["0.39.0"]},{"ecosystem":"Go","name":"go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego","ranges":[">=0.38.0 <0.39.0"],"fixed":["0.39.0"]}]},{"id":"GO-2023-1546","url":"https://osv.dev/vulnerability/GO-2023-1546","summary":"Denial of service in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","modified":"2026-02-04T04:07:16.555606Z","packages":[{"ecosystem":"Go","name":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","purl":"pkg:golang/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","ranges":[">=0.38.0 <0.39.0"],"fixed":["0.39.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}