Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.deserialization.unserialize

unserialize() is called on request input, enabling PHP object injection. Gadget chains in loaded classes can lead to remote code execution.

Last updated:

Suite: Security

php

unserialize() is called on request input, enabling PHP object injection. Gadget chains in loaded classes can lead to remote code execution.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use json_decode, or pass ['allowed_classes' => false] to unserialize.

References

Source: packages/engine/rules/sast/php.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.