Description
FileUtil.extract() enumerates all zip file entries and extracts each file without validating whether file paths in the archive are outside the intended directory. When 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(). Arbitrary file creation can directly lead to code execution
Remediation
References
https://github.com/combust/mleap/pull/866#issuecomment-1738032225
https://research.jfrog.com/vulnerabilities/mleap-path-traversal-rce-xray-532656/
Related Vulnerabilities
CVE-2023-29199 Vulnerability in npm package vm2
CVE-2022-31190 Vulnerability in maven package org.dspace:dspace-xmlui
CVE-2023-35142 Vulnerability in maven package com.checkmarx.jenkins:checkmarx
CVE-2023-22465 Vulnerability in maven package org.http4s:http4s-core_2.12
CVE-2021-22144 Vulnerability in maven package org.elasticsearch:elasticsearch