Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS02cXY2LXE3N2ctN3FtNs4AAujz
NVFLARE unsafe deserialization due to Pickle
Impact
NVFLARE contains a vulnerability where deserialization of Untrusted Data due to Pickle usage may allow an unprivileged network attacker to cause Remote Code Execution, Denial Of Service, and Impact to both Confidentiality and Integrity.
All versions before 2.1.4 are affected.
CVSS Score = 9.8
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patches
The patch is included in nvflare==2.1.4
This new version uses MessagePack instead of Pickle to do serialization and deserialization.
Some object serializations supported by Pickle are not supported by MessagePack. We have provided out of box support for some built-in NVFLARE objects. For object serializations unsupported by MessagePack, the user will need to convert the objects to numpy or bytes before sending over to remote machines. The list of supported object types are listed in https://github.com/NVIDIA/NVFlare/blob/2.1/nvflare/fuel/utils/fobs/README.rst
Workarounds
No workarounds available.
Additional information
Issue Found by: Oliver Sellwood (Nintorac) and Elias Hohl
Permalink: https://github.com/advisories/GHSA-6qv6-q77g-7qm6JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02cXY2LXE3N2ctN3FtNs4AAujz
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 1 year ago
Updated: 8 months ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-6qv6-q77g-7qm6, CVE-2022-34668
References:
- https://github.com/NVIDIA/NVFlare/security/advisories/GHSA-6qv6-q77g-7qm6
- https://nvd.nist.gov/vuln/detail/CVE-2022-34668
- https://github.com/NVIDIA/NVFlare/commit/6cde16f3f4711583ae4d896dfcc125d25c7d5b0d
- https://github.com/pypa/advisory-database/tree/main/vulns/nvflare/PYSEC-2022-257.yaml
- http://packetstormsecurity.com/files/171483/NVFLARE-Unsafe-Deserialization.html
- https://github.com/advisories/GHSA-6qv6-q77g-7qm6
Blast Radius: 16.0
Affected Packages
pypi:nvflare
Dependent packages: 1Dependent repositories: 43
Downloads: 4,589 last month
Affected Version Ranges: < 2.1.4
Fixed in: 2.1.4
All affected versions: 0.1.3, 0.9.0, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10, 2.0.11, 2.0.12, 2.0.13, 2.0.14, 2.0.15, 2.0.16, 2.0.18, 2.0.19, 2.1.0, 2.1.1, 2.1.2, 2.1.3
All unaffected versions: 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.3.10, 2.3.11, 2.3.12, 2.4.0