vetkit.ruby.deserialization.unsafe-load
Request data is deserialized with Marshal / YAML.unsafe_load / Oj object mode / JSON.load, which can instantiate arbitrary objects and lead to remote code execution.
Last updated:
Suite: Security
ruby
Request data is deserialized with Marshal / YAML.unsafe_load / Oj object mode / JSON.load, which can instantiate arbitrary objects and lead to remote code execution.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Use JSON.parse (without create_additions) or YAML.safe_load with permitted_classes.
References
Source: packages/engine/rules/sast/ruby.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.