CVE-2022-31605 Unsafe yaml deserialization in NVFlare

Critical 9.8 Published Updated

An unprivileged network attacker can achieve remote code execution or denial of service in NVIDIA FLARE due to unsafe YAML deserialization.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-31605?

CVE-2022-31605 is a critical unsafe deserialization vulnerability in NVIDIA FLARE, published on 1 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-502

Which versions are affected by CVE-2022-31605?

3 open source packages ship an affected version, including nvflare. It affects 1 product.

PackageAffectedFixed in
nvflare PyPIAll versions2.1.2
nvflare PyPIAll versions2.1.2
nvflare PyPIAll versions2.1.2

Products include Nvidia Nvflare.

How do I fix CVE-2022-31605?

Upgrade nvflare to 2.1.2 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2022-31605 being exploited?

There is no known exploitation of CVE-2022-31605 in the wild and no public exploit code.

Sources

Also known as GHSA-hrf3-622q-8366, PYSEC-2022-232.

Is CVE-2022-31605 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free