microsoft.aspnetcore.signalr.protocols.messagepack.6.0.10.nupkg: 2 vulnerabilities (highest severity is: 7.5) #680
Labels
Mend: dependency security vulnerability
Security vulnerability detected by Mend
Vulnerable Library - microsoft.aspnetcore.signalr.protocols.messagepack.6.0.10.nupkg
Path to dependency file: /src/Certify.Server/Certify.Server.Api.Public.Tests/Certify.Server.Api.Public.Tests.csproj
Path to vulnerable library: /home/wss-scanner/.nuget/packages/system.text.json/6.0.6/system.text.json.6.0.6.nupkg
Vulnerabilities
*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2024-48924
Vulnerable Library - messagepack.2.1.90.nupkg
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
Library home page: https://api.nuget.org/packages/messagepack.2.1.90.nupkg
Path to dependency file: /src/Certify.Server/Certify.Server.Api.Public.Tests/Certify.Server.Api.Public.Tests.csproj
Path to vulnerable library: /home/wss-scanner/.nuget/packages/messagepack/2.1.90/messagepack.2.1.90.nupkg
Dependency Hierarchy:
Found in base branch: development
Vulnerability Details
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.For more information
If you have any questions or comments about this advisory:
Publish Date: 2024-10-17
URL: CVE-2024-48924
CVSS 3 Score Details (7.5)
Base Score Metrics:
Suggested Fix
Type: Upgrade version
Origin: GHSA-4qm4-8hg2-g2xm
Release Date: 2024-10-17
Fix Resolution: MessagePack - 2.5.187,3.0.214-rc.1
Step up your Open Source Security Game with Mend here
CVE-2024-43485
Vulnerable Library - system.text.json.6.0.6.nupkg
Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in.
Library home page: https://api.nuget.org/packages/system.text.json.6.0.6.nupkg
Path to dependency file: /src/Certify.CLI/Certify.CLI.csproj
Path to vulnerable library: /home/wss-scanner/.nuget/packages/system.text.json/6.0.6/system.text.json.6.0.6.nupkg
Dependency Hierarchy:
Found in base branch: development
Vulnerability Details
.NET and Visual Studio Denial of Service Vulnerability
Publish Date: 2024-10-08
URL: CVE-2024-43485
CVSS 3 Score Details (7.5)
Base Score Metrics:
Suggested Fix
Type: Upgrade version
Origin: GHSA-8g4q-xg66-9fp4
Release Date: 2024-10-08
Fix Resolution: System.Text.Json - 6.0.10,8.0.5
Step up your Open Source Security Game with Mend here
The text was updated successfully, but these errors were encountered: