CVE-2023-25151
Denial of service in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
Description
The otelhttp package of opentelemetry-go-contrib is vulnerable to a denial-of-service attack. The otelhttp package 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). The metric instruments do not "forget" previous measurement attributes when "cumulative" temporality is used, meaning that 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.
How to fix CVE-2023-25151
To remediate CVE-2023-25151, upgrade the affected package to a fixed version below.
- —upgrade to 0.39.0 or later
- —upgrade to 0.39.0 or later
- —upgrade to 0.39.0 or later
Is CVE-2023-25151 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- >= 0.38.0, < 0.39.0
- >= 0.38.0, < 0.39.0
- >= 0.38.0, < 0.39.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |