{"id":"CVE-2023-5245","published":"2023-11-15T12:52:18Z","modified":"2024-08-02T07:52:08Z","title":"Using MLeap for loading a saved model (zip archive) can lead to path traversal/arbitrary file creation and possibly…","vendor":null,"product":null,"tier":"tail","description":{"text":"FileUtil.extract() enumerates all zip file entries and extracts each file without validating whether file paths in the archive are outside the intended directory.\n\nWhen creating an instance of TensorflowModel using the saved_model format and an exported tensorflow model, the apply() function invokes the vulnerable implementation of FileUtil.extract().\n\nArbitrary file creation can directly lead to code execution","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01492,"percentile":0.74768,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/combust/mleap/pull/866#issuecomment-1738032225","tags":["patch"]},{"url":"https://research.jfrog.com/vulnerabilities/mleap-path-traversal-rce-xray-532656/","tags":["third-party-advisory"]}],"priority":{"score":20.2,"factors":[{"name":"EPSS percentile","points":14.95},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":null,"product":null,"versions":[">= 0.18.0, < 0.23.1"]}],"affected":[{"ecosystem":"Maven","package":"ml.combust.mleap:mleap-runtime_2.12","vulnerableRanges":["<0.23.1"],"patched":["0.23.1"],"from":["GHSA-897x-xvj8-42rq"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal in MLeap's FileUtil.extract() component, which extracts every entry of a zip archive without checking that the resulting file paths stay inside the intended directory. It is reached when a TensorFlow model is loaded in the saved_model format through the apply() path of TensorflowModel. An attacker who can supply a crafted model archive can cause arbitrary files to be created on the system, which can lead to code execution. The attack requires local low-privilege access, a high-complexity condition, and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:34Z"},"euvd":{"id":"EUVD-2023-2920","exploited":false,"provenance":"source"}}