Allocation of Resources Without Limits or Throttling Affecting go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace package, versions <0.44.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (68th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GOOPENTELEMETRYIOCONTRIBINSTRUMENTATIONNETHTTPHTTPTRACEOTELHTTPTRACE-5971114
  • published17 Oct 2023
  • disclosed16 Oct 2023
  • creditJakub Warczarek, Armin Ruech, Robert Pająk

Introduced: 16 Oct 2023

CVE-2023-45142  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace to version 0.44.0 or higher.

Overview

go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace is a provides a http.Handler and functions that are intended to be used to add tracing by wrapping existing handlers (with Handler) and routes WithRouteTag.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the otelhttp handler wrapper. An attacker can cause a denial of service by sending numerous malicious requests with random and long http.user_agent and http.method labels.

Note:

This is only exploitable if the program uses the otelhttp.NewHandler wrapper and does not filter any unknown HTTP methods or User agents at the CDN, LB, previous middleware, etc. level.

Workaround

This vulnerability can be mitigated by using otelhttp.WithFilter(), but it requires manual careful configuration to not log certain requests entirely.

CVSS Scores

version 3.1