-
Notifications
You must be signed in to change notification settings - Fork 10
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
Do not use zstd.Decoder.DecodeAll on untrusted data #27
Conversation
Would it be possible to also publish an advisory from this repo, so that consumers of the library will get automatically notified by GitHub (dependabot), as well as third-party security vulnerability scanners? |
Will do, once I figure out how :) |
internal/zstd/zstd.go
Outdated
wrapper := &decoderWrapper{Decoder: decoder} | ||
runtime.SetFinalizer(wrapper, func(dw *decoderWrapper) { | ||
err := dw.Reset(nil) | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be err == nil
Otherwise, malicious peers could DoS us with decompression bombs. This issue was uncovered during a security audit performed by 7ASecurity, facilitated by OSTIF, for the OpenTelemetry project. https://opentelemetry.io/blog/2024/cve-2024-36129/ GHSA-c74f-6mfw-mm4v
1e8e147
to
53bfa61
Compare
Otherwise, malicious peers could DoS us with decompression bombs.
This issue was uncovered during a security audit performed by 7ASecurity, facilitated by OSTIF, for the OpenTelemetry project.
https://opentelemetry.io/blog/2024/cve-2024-36129/ GHSA-c74f-6mfw-mm4v