All rules →
Rules / Ruby
SHIELD-RUBY-012

Unsafe deserialization via Marshal.load

criticalRubyCWE-502CVSS 9.8

What it detects

Marshal.load on untrusted data can instantiate arbitrary objects and execute code.

How to fix

Never deserialize untrusted data with Marshal; use JSON with a strict schema instead.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-012: Unsafe deserialization via Marshal.load — Zennoxa Shield