Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2023-45142
October 12, 2023
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.
Affected Packages
go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful (GO):
Affected version(s) >=v0.0.0-20200924185937-b313ddb2989e <v0.44.0
Fix Suggestion:
Update to version v0.44.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (GO):
Affected version(s) >=v0.0.0-20200924160626-65f835068e95 <v0.44.0
Fix Suggestion:
Update to version v0.44.0
go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux (GO):
Affected version(s) >=v0.0.0-20200924185937-b313ddb2989e <v0.44.0
Fix Suggestion:
Update to version v0.44.0
go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin (GO):
Affected version(s) >=v0.0.0-20200924185937-b313ddb2989e <v0.44.0
Fix Suggestion:
Update to version v0.44.0
go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron (GO):
Affected version(s) >=v0.0.0-20200924185937-b313ddb2989e <v0.44.0
Fix Suggestion:
Update to version v0.44.0
go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho (GO):
Affected version(s) >=v0.0.0-20200924185937-b313ddb2989e <v0.44.0
Fix Suggestion:
Update to version v0.44.0
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace (GO):
Affected version(s) >=v0.0.0-20200924185937-b313ddb2989e <v0.44.0
Fix Suggestion:
Update to version v0.44.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Allocation of Resources Without Limits or Throttling
EPSS
Base Score:
1.16