Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-5245
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 19:36 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Nov 2023, 12:52 UTC

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

osv:CVE-2023-5245
Complete source record
{
  "id": "6a4ce1a153f72ec68e34c57357abac3e416b62569dc2207504d3af90c6c50769",
  "url": "https://osv.dev/vulnerability/CVE-2023-5245",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Using MLeap for loading a saved model (zip archive) can lead to path traversal/arbitrary file creation and possibly remote code execution.",
    "summary": "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",
    "evidence": "osv:CVE-2023-5245",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-5245",
      "aliases": [
        "CVE-2023-5245",
        "GHSA-897x-xvj8-42rq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/combust/mleap",
              "type": "GIT",
              "events": [
                {
                  "introduced": "39b5da3b4357ba9e1e182b036fa0ed7dbb365dec"
                },
                {
                  "fixed": "8784e8eec1a5adf2164e1cb3e18f4d853d94fe36"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.18.0"
                      },
                      {
                        "fixed": "0.23.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:combust:mleap:0.18.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.18.0"
                      },
                      {
                        "last_affected": "0.18.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:combust:mleap:0.23.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.23.0"
                      },
                      {
                        "last_affected": "0.23.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.18.0",
            "0.23.0",
            "v0.23.0",
            "v0.22.0",
            "v0.21.1",
            "v0.21.0",
            "v0.20.0",
            "v0.19.0",
            "v0.18.1",
            "v0.18.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-5245.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.716862928Z",
      "provider": "osv",
      "references": [
        "https://mvnrepository.com",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5245.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-5245",
        "https://research.jfrog.com/vulnerabilities/mleap-path-traversal-rce-xray-532656/",
        "https://github.com/combust/mleap/pull/866#issuecomment-1738032225"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "JFROG",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5245.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-5245",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520231,
  "published_at": "2023-11-15T12:52:18.656+00:00"
}