{"id":"GHSA-47wv-vhj2-g66m","summary":"Use of insecure temporary file in Horovod","details":"### Impact\nThe insecure `tempfile.mktemp()` is used when Horovod is run in an LSF job with `jsrun`. In that situation, a jsrun rank file is created with `mktemp`, which could be hijacked by another process to read or manipulate the content.\n\nThis issue does not impact the use of MPI, Gloo, Spark or Ray.\n\n### Patches\nThe problem has been fixed in [b96ecae4](https://github.com/horovod/horovod/commit/b96ecae4dc69fc0a83c7c2d3f1dde600c20a1b41).\n\n### Workarounds\nThe rank file is not created when `binding_args` are provided in the `Settings` instance.\n\n### References\nPlease see https://github.com/horovod/horovod/pull/3358 for details.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [https://github.com/horovod/horovod](https://github.com/horovod/horovod/issues/new/choose)","aliases":["CVE-2022-0315","PYSEC-2022-175"],"modified":"2024-09-20T22:14:20.474806Z","published":"2022-03-29T19:18:32Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-03-29T19:18:32Z","nvd_published_at":"2022-03-24T09:15:00Z","cwe_ids":["CWE-377","CWE-668"],"severity":"HIGH"},"references":[{"type":"WEB","url":"https://github.com/horovod/horovod/security/advisories/GHSA-47wv-vhj2-g66m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0315"},{"type":"WEB","url":"https://github.com/horovod/horovod/pull/3358"},{"type":"WEB","url":"https://github.com/horovod/horovod/commit/b96ecae4dc69fc0a83c7c2d3f1dde600c20a1b41"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-47wv-vhj2-g66m"},{"type":"PACKAGE","url":"https://github.com/horovod/horovod"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/horovod/PYSEC-2022-175.yaml"},{"type":"WEB","url":"https://huntr.dev/bounties/7e50397b-dd63-4bb5-b56d-704094a7da45"}],"affected":[{"package":{"name":"horovod","ecosystem":"PyPI","purl":"pkg:pypi/horovod"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.24.0"}]}],"versions":["0.10.0","0.10.1","0.10.2","0.11.0","0.11.1","0.11.2","0.11.3","0.12.0","0.12.1","0.13.0","0.13.1","0.13.10","0.13.11","0.13.2","0.13.3","0.13.4","0.13.5","0.13.6","0.13.7","0.13.8","0.14.0","0.14.1","0.15.0","0.15.1","0.15.2","0.16.0","0.16.1","0.16.2","0.16.3","0.16.4","0.18.0","0.18.1","0.18.2","0.19.0","0.19.1","0.19.2","0.19.3","0.19.4","0.19.5","0.20.0","0.20.1","0.20.2","0.20.3","0.21.0","0.21.1","0.21.2","0.21.3","0.22.0","0.22.1","0.23.0","0.9.0","0.9.1","0.9.10","0.9.11","0.9.12","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-47wv-vhj2-g66m/GHSA-47wv-vhj2-g66m.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N"}]}