CVE-2023-5245 Zip slip in mleap
Attackers can exploit path traversal in MLeap's model loading to create arbitrary files, potentially leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-5245?
CVE-2023-5245 is a high-severity path traversal vulnerability in combust:mleap, published on 15 Nov 2023. Any signed-in user can exploit it over the network, with no action from the victim.
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
Weakness: CWE-22
Which versions are affected by CVE-2023-5245?
2 open source packages ship an affected version, including ml.combust.mleap:mleap-runtime_2.12. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ml.combust.mleap:mleap-runtime_2.12 Maven | All versions | 0.23.1 |
ml.combust.mleap:mleap-runtime_2.12 Maven | All versions | 0.23.1 |
Products include Combust Mleap.
How do I fix CVE-2023-5245?
Upgrade ml.combust.mleap:mleap-runtime_2.12 to 0.23.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-5245 being exploited?
There is no known exploitation of CVE-2023-5245 in the wild and no public exploit code.
Sources
Also known as GHSA-897x-xvj8-42rq.