CVE-2022-31605
JSON

9.8critical

Unsafe yaml deserialization in NVFlare

Severity
9.8critical CVSS:3.1 by nvidia
Exploit likelihood
2.21% (higher than 83% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
nvidia
Also known as
GHSA-hrf3-622q-8366PYSEC-2022-232

Description

NVFLARE, versions prior to 2.1.2, contains a vulnerability in its utils module, where YAML files are loaded via yaml.load() instead of yaml.safe_load(). The deserialization of Untrusted Data, may allow an unprivileged network attacker to cause Remote Code Execution, Denial Of Service, and Impact to both Confidentiality and Integrity.

Affected

Product or packageVersionsReported by
NVIDIA NVIDIA FLAREAll versions prior to 2.1.2CVE List
nvflare (PyPI)before 2.1.2GitHub Advisory Database, PyPA Advisory Database
nvidia nvflarebefore 2.1.2NVD

All scores

nvidia9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

NVFLARE, versions prior to 2.1.2, contains a vulnerability in its utils module, where YAML files are loaded via yaml.load() instead of yaml.safe_load(). The deserialization of Untrusted Data, may allow an unprivileged network attacker to cause Remote Code Execution, Denial Of Service, and Impact to both Confidentiality and Integrity.

GitHub Advisory Database
Impact

NVFLARE contains a vulnerability in its utils module, where YAML files are loaded via yaml.load() instead of yaml.safe_load(). The deserialization of Untrusted Data, 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.2 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 will be included in nvflare==2.1.2

Workarounds

Change yaml.load() to yaml.safe_load()

Additional information

Issue Found by: Oliver Sellwood (@Nintorac)

NVD (es)

NVFLARE, versiones anteriores a 2.1.2, contiene una vulnerabilidad en su módulo utils, donde los archivos YAML son cargados por medio de yaml.load() en lugar de yaml.safe_load(). La deserialización de datos no confiables, puede permitir a un atacante no privilegiado en la red causar Ejecución de Código Remota, Denegación de Servicio, e Impacto a la Confidencialidad e Integridad

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31605 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-hrf3-622q-8366 changed 2026-07-08CC-BY-4.0
NVDCVE-2022-31605 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-232 changed 2023-11-08CC-BY-4.0