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 package | Versions | Reported by |
|---|---|---|
| NVIDIA NVIDIA FLARE | All versions prior to 2.1.2 | CVE List |
| nvflare (PyPI) | before 2.1.2 | GitHub Advisory Database, PyPA Advisory Database |
| nvidia nvflare | before 2.1.2 | NVD |
All scores
| nvidia | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV: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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31605 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hrf3-622q-8366 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2022-31605 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2022-232 changed 2023-11-08 | CC-BY-4.0 |