CVE-2024-10372
Homebrew vulnerability analysis and mitigation

Overview

A vulnerability has been identified in chidiwilliams buzz version 1.1.0, specifically affecting the downloadmodel function in the buzz/modelloader.py file. The vulnerability was disclosed on October 24, 2024, and is tracked as CVE-2024-10372. The issue stems from the use of insecure temporary file handling (GitHub Advisory).

Technical details

The vulnerability arises from the use of the deprecated tempfile.mktemp() function, which is fundamentally insecure as it does not ensure exclusive access to temporary files. The function generates a unique filename but requires a separate operation to open the file, creating a potential race condition. The CVSS v3.1 base score is 3.6 (LOW) with the vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L (NVD).

Impact

The vulnerability primarily affects system availability and can potentially lead to code execution and data leaks. This occurs because malicious actors could replace the intended model with a compromised URL model during the window between temporary file name generation and file creation (GitHub Advisory).

Mitigation and workarounds

The recommended fix is to replace the usage of tempfile.mktemp() with mkstemp(). This alternative function provides atomic file creation and ensures exclusive access to the temporary file (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management