Browse / AI Framework and Platform Flaws / CVE-2022-0736
Insecure Temporary File in mlflow
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2022-0736
- https://github.com/mlflow/mlflow/commit/61984e6843d2e59235d82a580c529920cd8f3711
- https://github.com/advisories/GHSA-vqj2-4v8m-8vrq
- https://github.com/mlflow/mlflow
- https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2022-28.yaml
- https://huntr.dev/bounties/e5384764-c583-4dec-a1d8-4697f4e12f75
Source: GitHub Advisory Database, used under CC BY 4.0.