{"id":"CVE-2024-27134","published":"2024-11-25T13:48:05Z","modified":"2024-11-25T14:23:59Z","title":"Excessive directory permissions in MLflow leads to local privilege escalation when using spark_udf","vendor":null,"product":null,"tier":"tail","description":{"text":"Excessive directory permissions in MLflow leads to local privilege escalation when using spark_udf. This behavior can be exploited by a local attacker to gain elevated permissions by using a ToCToU attack. The issue is only relevant when the spark_udf() MLflow API is called.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00162,"percentile":0.02905,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"},{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/mlflow/mlflow/pull/10874","tags":["patch"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":0.58},{"name":"CVSS severity","points":4.9}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 2.16.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-25T14:23:17.524784Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mlflow","vulnerableRanges":["<2.16.0"],"patched":["2.16.0"],"from":["GHSA-qpgc-w4mg-6v92","PYSEC-2024-224"],"provenance":"source"}],"summary":{"text":"Excessive directory permissions in MLflow allow a local privilege escalation flaw when the spark_udf() API is used, since the directory handling is only relevant in that context. A local attacker with a low-privilege account can exploit a time-of-check to time-of-use race condition, with user interaction required, to gain elevated permissions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:39Z"},"euvd":{"id":"EUVD-2024-0115","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mlflow-mlflow-cve-2024-27134","children":[{"from":"CVE-2024-27134","to":"CVE-2026-4137","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["mlflow/pyfunc/__init__.py"],"commits":["https://github.com/mlflow/mlflow/commit/0b1d995d66a678153e01ed3040f3f4dfc16a0d6b","https://github.com/mlflow/mlflow/commit/1dcbb0c2fbd1f446c328830e601ca13a28219b8a","https://github.com/mlflow/mlflow/commit/bd8854fb2b4b168a4384ebddc6c4a0b5d56aff01"],"basis":"shared function","functions":["_create_model_downloading_tmp_dir"]}]}],"packageHistory":[{"cve":"CVE-2024-1483","published":"2024-04-16","fixed":"2.12.1","kev":false},{"cve":"CVE-2024-1558","published":"2024-04-16","fixed":"2.12.1","kev":false},{"cve":"CVE-2024-3848","published":"2024-05-16","fixed":"2.12.1","kev":false},{"cve":"CVE-2024-27134","published":"2024-11-25","fixed":"2.16.0","kev":false},{"cve":"CVE-2024-8859","published":"2025-03-20","fixed":"2.17.0rc0","kev":false,"link":{"from":"CVE-2024-27134","to":"CVE-2024-8859","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mlflow","fromFixed":"2.16.0","toFixed":"2.17.0rc0","daysApart":115}]}},{"cve":"CVE-2025-1474","published":"2025-03-20","fixed":"2.19.0","kev":false},{"cve":"CVE-2025-1473","published":"2025-03-20","fixed":"2.20.3","kev":false}],"package":"PyPI:mlflow"}}