Skip to content

Pickle serialization vulnerable to Deserialization of Untrusted Data

High severity GitHub Reviewed Published Oct 11, 2023 in vantage6/vantage6 • Updated Nov 11, 2023

Package

pip vantage6 (pip)

Affected versions

< 4.0.2

Patched versions

4.0.2

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

@frankcorneliusmartin frankcorneliusmartin published to vantage6/vantage6 Oct 11, 2023
Published by the National Vulnerability Database Oct 11, 2023
Published to the GitHub Advisory Database Oct 13, 2023
Reviewed Oct 13, 2023
Last updated Nov 11, 2023

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

EPSS score

0.125%
(48th percentile)

Weaknesses

CVE ID

CVE-2023-23930

GHSA ID

GHSA-5m22-cfq9-86x6

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.