Use of insecure temporary file in Horovod
High8.2CVE-2022-0315 · Published Mar 29, 2022 · updated Sep 20, 2024
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| horovod PyPI | < 0.24.0 | 0.24.0 |
Details and references
### Impact The 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. This issue does not impact the use of MPI, Gloo, Spark or Ray. ### Patches The problem has been fixed in [b96ecae4](https://github.com/horovod/horovod/commit/b96ecae4dc69fc0a83c7c2d3f1dde600c20a1b41). ### Workarounds The rank file is not created when `binding_args` are provided in the `Settings` instance. ### References Please see https://github.com/horovod/horovod/pull/3358 for details. ### For more information If you have any questions or comments about this advisory: * Open an issue in [https://github.com/horovod/horovod](https://github.com/horovod/horovod/issues/new/choose)
- CVSS 3.0
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-377, CWE-668
- Also known as
- CVE-2022-0315, PYSEC-2022-175
- github.com/horovod/horovod/security/advisories/GHSA-47wv-vhj2-g66m
- nvd.nist.gov/vuln/detail/CVE-2022-0315
- github.com/horovod/horovod/pull/3358
- github.com/horovod/horovod/commit/b96ecae4dc69fc0a83c7c2d3f1dde600c20a1b41
- github.com/advisories/GHSA-47wv-vhj2-g66m
- github.com/horovod/horovod
- github.com/pypa/advisory-database/tree/main/vulns/horovod/PYSEC-2022-175.yaml
- huntr.dev/bounties/7e50397b-dd63-4bb5-b56d-704094a7da45
More horovod advisories
All| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Mar 202025 | Horovod Vulnerable to Command Injection CVE-2024-10190Critical9.8no fix yet | Critical9.8 | No fix yet |
| May 12 | Horovod contains an insecure deserialization vulnerability in its KVStore HTTP server component CVE-2026-31234Critical9.8no fix yet | Critical9.8 | No fix yet |