Pickle serialization vulnerable to Deserialization of Untrusted Data
GHSA-5m22-cfq9-86x6 · CVE-2023-23930 · PYSEC-2023-196
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
What
We are using pickle as default serialization module but that has known security issues (see e.g. https://medium.com/ochrona/python-pickle-is-notoriously-insecure-d6651f1974c9).
In summary, it is not advisable to open Pickles that you create yourself locally. In vantage6, algorithms use pickles to send aggregated data around and to pack algorithm input or output. All of the Python algorithms that use the wrappers with default serialization are therefore vulnerable to this issue.
Solution: we should use JSON instead
Impact
All users of vantage6 that post tasks with algorithms that use the default serialization. The default serialization is used by default with all algorithm wrappers.
Patches
Not yet
Workarounds
Specify JSON serialization
References
- WEB https://github.com/vantage6/vantage6/security/advisories/GHSA-5m22-cfq9-86x6
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2023-23930
- WEB https://github.com/vantage6/vantage6/commit/e62f03bacf2247bd59eed217e2e7338c3a01a5f0
- WEB https://github.com/pypa/advisory-database/tree/main/vulns/vantage6/PYSEC-2023-196.yaml
- PACKAGE https://github.com/vantage6/vantage6
- WEB https://github.com/vantage6/vantage6/blob/0682c4288f43fee5bcc72dc448cdd99bd7e57f76/docs/release_notes.rst#400
- WEB https://medium.com/ochrona/python-pickle-is-notoriously-insecure-d6651f1974c9
Ready to move
Start Securing
Free, no credit card | First findings in minutes