MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2022-0736

Insecure Temporary File in mlflow

CVE-2022-0736 ยท 2022-02-24 high

Class
AI Framework and Platform Flaws (filed by a model that read the source)
Technique
Other weaknesses
Affected
mlflow (PyPI)
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS
1.6% chance of exploitation in 30 days

How it works, in short

Code creates temporary files with the deprecated mktemp function, which returns only a name and leaves a race window for attackers to plant files. (Our summary, written by a model. The source text is below.)

Details

mlflow prior to 1.23.1 contains an insecure temporary file. The insecure function tempfile.mktemp() is deprecated and mkstemp() should be used instead.

References

Source: GitHub Advisory Database, used under CC BY 4.0.