# CVE-2023-25151: DoS vulnerability for high cardinality metrics in opentelemetry-go-contrib

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-08T19:21:37.401Z
- Modified: 2026-06-17T05:40:47.217Z
- Also known as: GHSA-5r5m-65gx-7vrh, GO-2023-1546
- Related: CVE-2023-45142, GO-2022-0322, GO-2023-2113, CVE-2022-21698, GHSA-cg3q-j54f-5p7p, GHSA-rcjv-mgp8-qvmr
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- open-telemetry opentelemetry-go-contrib: >= 0.38.0, < 0.39.0
- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (Go): from 0.38.0 before 0.39.0
- go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego (Go): from 0.38.0 before 0.39.0
- linuxfoundation opentelemetry-go_contrib: 0.38.0

## Every score

- GitHub_M: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-5r5m-65gx-7vrh> (exploit, advisory, vendor-advisory, web)
- <https://github.com/open-telemetry/opentelemetry-go/blob/v1.12.0/semconv/internal/v2/http.go#L159> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25151> (advisory)
- <https://github.com/open-telemetry/opentelemetry-go-contrib> (package)

## Sources

- CVE List: [CVE-2023-25151](https://www.cve.org/CVERecord?id=CVE-2023-25151), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-5r5m-65gx-7vrh](https://github.com/advisories/GHSA-5r5m-65gx-7vrh), CC-BY-4.0, modified 2026-02-04
- Go Vulnerability Database: [GO-2023-1546](https://pkg.go.dev/vuln/GO-2023-1546), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-25151](https://nvd.nist.gov/vuln/detail/CVE-2023-25151), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25151 · Whole record: https://cve.day/CVE-2023-25151.json · Rebuilt by cve.day 2026-11-25T22:58:21.882Z
