{"id":"CVE-2023-5245","summary":"Using MLeap for loading a saved model (zip archive) can lead to path traversal/arbitrary file creation and possibly remote code execution.","details":"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","aliases":["GHSA-897x-xvj8-42rq"],"modified":"2026-08-12T03:51:23.255225694Z","published":"2023-11-15T12:52:18.656Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5245.json","cna_assigner":"JFROG","cwe_ids":["CWE-22"]},"references":[{"type":"WEB","url":"https://mvnrepository.com"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5245.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5245"},{"type":"ADVISORY","url":"https://research.jfrog.com/vulnerabilities/mleap-path-traversal-rce-xray-532656/"},{"type":"FIX","url":"https://github.com/combust/mleap/pull/866#issuecomment-1738032225"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/combust/mleap","events":[{"introduced":"39b5da3b4357ba9e1e182b036fa0ed7dbb365dec"},{"fixed":"8784e8eec1a5adf2164e1cb3e18f4d853d94fe36"}],"database_specific":{"extracted_events":[{"introduced":"0.18.0"},{"fixed":"0.23.1"},{"last_affected":"0.18.0"},{"introduced":"0.23.0"},{"last_affected":"0.23.0"}],"source":["AFFECTED_FIELD","CPE_STRING"],"cpe":["cpe:2.3:a:combust:mleap:0.18.0:*:*:*:*:*:*:*","cpe:2.3:a:combust:mleap:0.23.0:*:*:*:*:*:*:*"]}}],"versions":["0.18.0","0.23.0","v0.23.0","v0.22.0","v0.21.1","v0.21.0","v0.20.0","v0.19.0","v0.18.1","v0.18.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-5245.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}