CVE-2020-5234 Untrusted data can lead to DoS attack in MessagePack for C# and Unity

Medium 4.8 Published Updated

Attackers can cause denial of service in MessagePack for C# and Unity via hash collisions and stack overflow using untrusted data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-5234?

CVE-2020-5234 is a medium-severity denial of service vulnerability in neuecc MessagePack, published on 31 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

MessagePack for C# and Unity before version 1.9.11 and 2.1.90 has a vulnerability where untrusted data can lead to DoS attack due to hash collisions and stack overflow. Review the linked GitHub Security Advisory for more information and remediation steps.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2020-5234?

20 open source packages ship an affected version, including MessagePack, MessagePack.ImmutableCollection and MessagePack.ReactiveProperty. It affects 1 product.

PackageAffectedFixed in
MessagePack NuGetAll versions1.9.11
MessagePack NuGetAll versions1.9.11
MessagePack NuGetFrom 2.0.02.1.90
MessagePack NuGetFrom 2.0.02.1.90
MessagePack.ImmutableCollection NuGetAll versions1.9.11
MessagePack.ImmutableCollection NuGetAll versions1.9.11
14 more packages
MessagePack.ImmutableCollection NuGetFrom 2.0.02.1.90
MessagePack.ImmutableCollection NuGetFrom 2.0.02.1.90
MessagePack.ReactiveProperty NuGetAll versions1.9.11
MessagePack.ReactiveProperty NuGetAll versions1.9.11
MessagePack.ReactiveProperty NuGetFrom 2.0.02.1.90
MessagePack.ReactiveProperty NuGetFrom 2.0.02.1.90
MessagePack.Unity NuGetAll versions1.9.11
MessagePack.Unity NuGetAll versions1.9.11
MessagePack.Unity NuGetFrom 2.0.02.1.90
MessagePack.Unity NuGetFrom 2.0.02.1.90
MessagePack.UnityShims NuGetAll versions1.9.11
MessagePack.UnityShims NuGetAll versions1.9.11
MessagePack.UnityShims NuGetFrom 2.0.02.1.90
MessagePack.UnityShims NuGetFrom 2.0.02.1.90

Products include Messagepack Messagepack.

How do I fix CVE-2020-5234?

Upgrade MessagePack to a fixed version for your release line: 1.9.11 or 2.1.90.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2020-5234 being exploited?

There is no known exploitation of CVE-2020-5234 in the wild and no public exploit code.

Sources

Also known as AZL-109523, GHSA-7q36-4xx7-xcxf.

Is CVE-2020-5234 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free