PT-2023-31972 · Unknown+1 · Tensorflow+2

David Fadida

·

Published

2023-09-16

·

Updated

2024-12-13

·

CVE-2023-5245

CVSS v3.1

10

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions MLeap versions prior to 0.17.0
Description The issue is related to a path traversal flaw, also known as Zip Slip, which allows arbitrary file creation and can lead to code execution. This occurs when the FileUtil.extract() function 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(). This can result in arbitrary file overwrites, risking denial-of-service (DoS) or remote code execution (RCE).
Recommendations For MLeap versions prior to 0.17.0, update to version 0.17.0 to resolve the issue. As a temporary workaround, consider restricting the use of the FileUtil.extract() function until a patch is available. Avoid using the vulnerable implementation of FileUtil.extract() when creating instances of TensorflowModel using the saved model format and an exported tensorflow model.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

BDU:2025-02694
CVE-2023-5245
GHSA-897X-XVJ8-42RQ

Affected Products

Mleap
Tensorflow
Tensorflowmodel