GHSA-rcxc-3w2m-mp8h

Source
https://github.com/advisories/GHSA-rcxc-3w2m-mp8h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-rcxc-3w2m-mp8h/GHSA-rcxc-3w2m-mp8h.json
Aliases
Published
2022-06-22T21:22:42Z
Modified
2023-11-08T04:09:31.164645Z
Details

Impact

NVFLARE contains a vulnerability in its PKI implementation module, where The CA credentials are transported via pickle and no safe deserialization. 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

Replace pickle serialization with JSON and change the code accordingly

Additional information Issue Found by: Oliver Sellwood (@Nintorac)

References

Affected packages

PyPI / nvflare

Package

Name
nvflare

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
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

Ecosystem specific

{
    "affected_functions": [
        "nvflare.lighter.impl.cert.CertBuilder.initialize",
        "nvflare.lighter.impl.cert.CertBuilder._build_write_cert_pair",
        "nvflare.lighter.impl.cert.CertBuilder.finalize"
    ]
}