Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) - autoclosed #263

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 5, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.4 -> v0.46.0 age adoption passing confidence

otelgrpc DoS vulnerability due to unbound cardinality metrics

CVE-2023-47108 / GHSA-8pgv-569h-w5rw

More information

Details

Summary

The grpc Unary Server Interceptor opentelemetry-go-contrib/instrumentation/google.golang.org/grpc/otelgrpc/interceptor.go

// UnaryServerInterceptor returns a grpc.UnaryServerInterceptor suitable
// for use in a grpc.NewServer call.
func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor {

out of the box adds labels

  • net.peer.sock.addr
  • net.peer.sock.port

that have unbound cardinality. It leads to the server's potential memory exhaustion when many malicious requests are sent.

Details

An attacker can easily flood the peer address and port for requests.

PoC

Apply the attached patch to the example and run the client multiple times. Observe how each request will create a unique histogram and how the memory consumption increases during it.

Impact

In order to be affected, the program has to configure a metrics pipeline, use UnaryServerInterceptor, and does not filter any client IP address and ports via middleware or proxies, etc.

Others

It is similar to already reported vulnerabilities.

Workaround for affected versions

As a workaround to stop being affected, a view removing the attributes can be used.

The other possibility is to disable grpc metrics instrumentation by passing otelgrpc.WithMeterProvider option with noop.NewMeterProvider.

Solution provided by upgrading

In PR #​4322, to be released with v0.46.0, the attributes were removed.

References

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the automated label Jan 5, 2024
@renovate renovate bot changed the title chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) - autoclosed Jan 7, 2024
@renovate renovate bot closed this Jan 7, 2024
@renovate renovate bot deleted the renovate/release-1.12-go-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-vulnerability branch January 7, 2024 14:24
@renovate renovate bot changed the title chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) - autoclosed chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) Jan 9, 2024
@renovate renovate bot reopened this Jan 9, 2024
@renovate renovate bot restored the renovate/release-1.12-go-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-vulnerability branch January 9, 2024 14:23
@renovate renovate bot force-pushed the renovate/release-1.12-go-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-vulnerability branch from ccb4214 to 02947f0 Compare January 9, 2024 14:25
@renovate renovate bot changed the title chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) - autoclosed Jan 9, 2024
@renovate renovate bot closed this Jan 9, 2024
@renovate renovate bot deleted the renovate/release-1.12-go-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-vulnerability branch January 9, 2024 14:27
@renovate renovate bot restored the renovate/release-1.12-go-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-vulnerability branch January 16, 2024 13:17
@renovate renovate bot changed the title chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) - autoclosed chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) Jan 16, 2024
@renovate renovate bot reopened this Jan 16, 2024
…n/google.golang.org/grpc/otelgrpc to v0.46.0 [security]
@renovate renovate bot force-pushed the renovate/release-1.12-go-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-vulnerability branch from 02947f0 to 7aa857d Compare January 16, 2024 13:18
@renovate renovate bot changed the title chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) chore(deps): update module go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.0 [security] (release-1.12) - autoclosed Jan 17, 2024
@renovate renovate bot closed this Jan 17, 2024
@renovate renovate bot deleted the renovate/release-1.12-go-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-vulnerability branch January 17, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants