Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.deserialization.unsafe-load

Deserializing data with pickle/marshal/shelve or yaml.load without a safe loader can execute arbitrary code if the input is untrusted.

Last updated:

Suite: Security

python

Deserializing data with pickle/marshal/shelve or yaml.load without a safe loader can execute arbitrary code if the input is untrusted.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use JSON or yaml.safe_load; if pickle is unavoidable, sign and verify the payload (HMAC) first.

References

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