Skip to content
OpenAdvisories
High · 7.5 CVE-2023-5245 EUVD-2023-2920GHSA-897x-xvj8-42rq

Using MLeap for loading a saved model (zip archive) can lead to path traversal/arbitrary file creation and possibly remote code execution.

Published Nov 15, 2023 · Updated Aug 2, 2024 · Assigned by JFROG

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 products

VendorProductAffectedFixed
— ml.combust.mleap.mleap-tensorflow 0.18.0 – < 0.23.1 0.23.1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven ml.combust.mleap:mleap-runtime_2.12 < 0.23.1 0.23.1 GHSA-897x-xvj8-42rq

References