Skip to content

Zip slip in mleap

High severity GitHub Reviewed Published Nov 15, 2023 to the GitHub Advisory Database • Updated Nov 23, 2023

Package

maven ml.combust.mleap:mleap-runtime_2.12 (Maven)

Affected versions

< 0.23.1

Patched versions

0.23.1

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

References

Published by the National Vulnerability Database Nov 15, 2023
Published to the GitHub Advisory Database Nov 15, 2023
Reviewed Nov 23, 2023
Last updated Nov 23, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2023-5245

GHSA ID

GHSA-897x-xvj8-42rq

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.