[TST-24] [deps]: Update MessagePack to 2.5.187 [SECURITY] #3422
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.5.124
->2.5.187
GitHub Vulnerability Alerts
CVE-2024-48924
Impact
When this library is used to deserialize messagepack data from an untrusted source, there is a risk of a denial of service attack by an attacker that sends data contrived to produce hash collisions, leading to large CPU consumption disproportionate to the size of the data being deserialized.
This is similar to a prior advisory, which provided an inadequate fix for the hash collision part of the vulnerability.
Patches
The following steps are required to mitigate this risk.
Workarounds
If upgrading MessagePack to a patched version is not an option for you, you may apply a manual workaround as follows:
MessagePackSecurity
.GetHashCollisionResistantEqualityComparer<T>
method to provide a collision-resistant hash function of your own and avoid callingbase.GetHashCollisionResistantEqualityComparer<T>()
.MessagePackSerializerOptions
with an instance of your derived type by callingWithSecurity
on an existing options object.MessagePackSerializer.DefaultOptions
static property, if you call methods that rely on this default property, and/or by passing in the options object explicitly to anyDeserialize
method.References
HashCode
struct (or in the pull request that merges this into the dotnet org).For more information
If you have any questions or comments about this advisory:
Release Notes
MessagePack-CSharp/MessagePack-CSharp (MessagePack)
v2.5.187
Changes:
This list of changes was auto generated.
v2.5.172
What's Changed
[MessagePackFormatter]
on parameters and return values by @AArnott in https://github.com/MessagePack-CSharp/MessagePack-CSharp/pull/1901Full Changelog: MessagePack-CSharp/MessagePack-CSharp@v2.5.171...v2.5.172
v2.5.171
What's Changed
Full Changelog: MessagePack-CSharp/MessagePack-CSharp@v2.5.168...v2.5.171
v2.5.168
What's Changed
New Contributors
Full Changelog: MessagePack-CSharp/MessagePack-CSharp@v2.5.140...v2.5.168
v2.5.140
What's Changed
New Contributors
Full Changelog: MessagePack-CSharp/MessagePack-CSharp@v2.5.129...v2.5.140
v2.5.129
What's Changed
long
toint
truncation of stream position by @AArnott in https://github.com/MessagePack-CSharp/MessagePack-CSharp/pull/1685Full Changelog: MessagePack-CSharp/MessagePack-CSharp@v2.5.124...v2.5.129
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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.