All rules →
Rules / C#
SHIELD-CSHARP-006

Insecure deserialization via BinaryFormatter and similar formatters

criticalC#CWE-502CVSS 9.8

What it detects

BinaryFormatter or a comparable formatter Deserialize call allows arbitrary type instantiation and remote code execution.

How to fix

Replace BinaryFormatter and similar formatters with a safe serializer such as System.Text.Json without type name handling.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CSHARP-006: Insecure deserialization via BinaryFormatter and similar formatters — Zennoxa Shield