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-2022-3171 Vulnerability in maven package com.google.protobuf:protobuf-javalite
CVE-2021-23343 Vulnerability in npm package path-parse
CVE-2021-21119 Vulnerability in npm package electron
CVE-2022-31172 Vulnerability in npm package @openzeppelin/contracts
CVE-2023-27495 Vulnerability in npm package @fastify/csrf-protection