{"id":"CVE-2024-1558","summary":"Path Traversal Vulnerability in mlflow/mlflow","details":"A path traversal vulnerability exists in the `_create_model_version()` function within `server/handlers.py` of the mlflow/mlflow repository, due to improper validation of the `source` parameter. Attackers can exploit this vulnerability by crafting a `source` parameter that bypasses the `_validate_non_local_source_contains_relative_paths(source)` function's checks, allowing for arbitrary file read access on the server. The issue arises from the handling of unquoted URL characters and the subsequent misuse of the original `source` value for model version creation, leading to the exposure of sensitive files when interacting with the `/model-versions/get-artifact` handler.","aliases":["BIT-mlflow-2024-1558","GHSA-j62r-wxqq-f3gf","PYSEC-2026-1653"],"modified":"2026-08-12T15:14:57.853748Z","published":"2024-04-16T00:00:14.626Z","database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1558.json"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/7f4dbcc5-b6b3-43dd-b310-e2d0556a8081"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1558.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1558"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mlflow/mlflow","events":[{"introduced":"0"},{"fixed":"328242e01b766129396415be219cb96127097501"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.12.1"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:lfprojects:mlflow:*:*:*:*:*:*:*:*"}}],"versions":["v2.2.0","v1.7.0","1.0.0","v0.8.1","v0.8.0","v0.7","v0.6.0","v0.5.0","v0.4.2","v0.4.1","v0.4.0","v0.3.0","v0.2.1","v0.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-1558.json","vanir_signatures_modified":"2026-08-12T15:14:57Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/mlflow/mlflow/commit/328242e01b766129396415be219cb96127097501","target":{"file":"mlflow/java/scoring/src/main/java/org/mlflow/sagemaker/ScoringServer.java"},"deprecated":false,"digest":{"line_hashes":["331374387258698623515503197375262902471","56531494967603305558894176301696978897","156845208350900572074037141806451871031","236113965666297154310270274411699188635"],"threshold":0.9},"id":"CVE-2024-1558-0490fec7","signature_type":"Line"},{"digest":{"function_hash":"103832320670295227953645632588587077659","length":189},"id":"CVE-2024-1558-54219b73","signature_type":"Function","signature_version":"v1","source":"https://github.com/mlflow/mlflow/commit/328242e01b766129396415be219cb96127097501","target":{"file":"mlflow/java/scoring/src/main/java/org/mlflow/sagemaker/ScoringServer.java","function":"doGet"},"deprecated":false},{"deprecated":false,"digest":{"function_hash":"248178710733966095301624193790593745960","length":483},"id":"CVE-2024-1558-9f1fee19","signature_type":"Function","signature_version":"v1","source":"https://github.com/mlflow/mlflow/commit/328242e01b766129396415be219cb96127097501","target":{"function":"testScoringServerWithValidPredictorRespondsToVersionCorrectly","file":"mlflow/java/scoring/src/test/java/org/mlflow/ScoringServerTest.java"}},{"source":"https://github.com/mlflow/mlflow/commit/328242e01b766129396415be219cb96127097501","target":{"file":"mlflow/java/scoring/src/test/java/org/mlflow/ScoringServerTest.java"},"deprecated":false,"digest":{"line_hashes":["227586388277291964245723347465144503129","214612006548484888068671228559130409821","141702509437346544668394886097631250819","44304877576058785675745254216915397335"],"threshold":0.9},"id":"CVE-2024-1558-d79dc76d","signature_type":"Line","signature_version":"v1"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}