CVE-2021-29508
C# vulnerability analysis and mitigation

Overview

Due to how Wire handles type information in its serialization format, malicious payloads can be passed to a deserializer. The vulnerability (CVE-2021-29508) affects all versions of the Wire NuGet package, a binary POCO serializer for .NET. The issue was disclosed on May 11, 2021, and affects the main Wire package as well as its fork, AkkaDotNet/Hyperion (GitHub Advisory).

Technical details

The vulnerability occurs when an attacker uses a surrogate on the sender end to pass information about a different type for the receiving end, allowing the serializer to create any type on the deserializing end. This is similar to the known issue that exists for .NET BinaryFormatter. The vulnerability has been assigned a CVSS v3.1 base score of 9.1 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (NVD).

Impact

The vulnerability allows attackers to execute arbitrary code through malicious deserialization. This can lead to remote code execution if a suitable gadget chain is present on the server. The issue affects all versions of Wire and its derivatives, making it a critical security concern for applications using this serialization library (GitHub Advisory).

Mitigation and workarounds

No official patch has been released for this vulnerability. The package has been deprecated as it is legacy and is no longer maintained. Users are advised to discontinue the use of Wire and migrate to alternative serialization libraries that implement proper security controls (NuGet Package).

Additional resources


SourceThis report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64095CRITICAL9.8
  • C#C#
  • DNN.PLATFORM
NoYesOct 28, 2025
CVE-2025-64113CRITICAL9.3
  • C#C#
  • MediaBrowser.Server.Core
NoYesDec 09, 2025
CVE-2025-66631HIGH7.2
  • C#C#
  • Csla
NoYesDec 09, 2025
CVE-2025-66625MEDIUM4.9
  • C#C#
  • Umbraco.Cms
NoYesDec 09, 2025
CVE-2025-65955MEDIUM4.9
  • C#C#
  • Magick.NET-Q8-OpenMP-arm64
NoYesDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management