GHSA-hrf3-622q-8366

Suggest an improvement
Source
https://github.com/advisories/GHSA-hrf3-622q-8366
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-hrf3-622q-8366/GHSA-hrf3-622q-8366.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hrf3-622q-8366
Aliases
Related
Published
2022-06-22T21:22:46Z
Modified
2025-02-21T05:42:28.875359Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Unsafe yaml deserialization in NVFlare
Details

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)

Database specific
{
    "nvd_published_at": "2022-07-01T18:15:00Z",
    "cwe_ids": [
        "CWE-502"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-22T21:22:46Z"
}
References

Affected packages

PyPI / nvflare

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.2

Affected versions

0.*

0.1.3
0.9.0

1.*

1.0.0
1.0.1
1.0.2
1.1.0
1.1.1

2.*

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