Vulnerability · Published Nov 15, 2023 · Assigned by JFROG
CVE-2023-5245Using MLeap for loading a saved model (zip archive) can lead to path traversal/arbitrary file creation and possibly remote code execution.
High 7.5
In plain English
A high-severity path traversal in ml.combust.mleap.mleap-tensorflow. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | ml.combust.mleap:mleap-runtime_2.12 | 0.23.1 | GHSA-897x-xvj8-42rq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ml.combust.mleap.mleap-tensorflow | 0.18.0 – before 0.23.1 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H