CVE-2023-5245 Using MLeap for loading a saved model (zip archive) can lead to path traversal/arbitrary file creation and possibly remote code execution.
CriticalCVSS 9.8
EPSS 1.5%
- Published
- Updated
- Exploit status
- No public exploit known
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
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ml.combust.mleap.mleap-tensorflow | >= 0.18.0, < 0.23.1 | 0.23.1 | Fixed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | < 0.23.1; = 0.14.0; = 0.15.0; = 0.16.0 +9 more | 0.23.1 | Fixed |
| combust mleap | = 0.18.0; = 0.23.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ml.combust.mleap/mleap-runtime_2.12(Maven) | < 0.23.1 | 0.23.1 |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.14.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.15.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.16.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.17.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.18.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.18.1 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.19.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.20.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.21.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.21.1 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.22.0 | No fix listed |
| ml.combust.mleap/mleap-runtime_2.12(Maven) | = 0.23.0 | No fix listed |
| ml.combust.mleap.mleap-tensorflow | >= 0.18.0, < 0.23.1 | 0.23.1 |
| combust mleap | = 0.18.0 | No fix listed |
| combust mleap | = 0.23.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- research.jfrog.com exploit third-party-advisory
- github.com
- github.com product