{"id":"CVE-2023-48299","published":"2023-11-21T20:55:59Z","modified":"2024-08-02T21:23:39Z","title":"TorchServe ZipSlip","vendor":"pytorch","product":"serve","tier":"tail","description":{"text":"TorchServe is a tool for serving and scaling PyTorch models in production. Starting in version 0.1.0 and prior to version 0.9.0, using the model/workflow management API, there is a chance of uploading potentially harmful archives that contain files that are extracted to any location on the filesystem that is within the process permissions. Leveraging this issue could aid third-party actors in hiding harmful code in open-source/public models, which can be downloaded from the internet, and take advantage of machines running Torchserve. The ZipSlip issue in TorchServe has been fixed by validating the paths of files contained within a zip archive before extracting them. TorchServe release 0.9.0 includes fixes to address the ZipSlip vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00835,"percentile":0.58637,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pytorch/serve/pull/2634","tags":["x_refsource_MISC"]},{"url":"https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb","tags":["x_refsource_MISC"]},{"url":"https://github.com/pytorch/serve/releases/tag/v0.9.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":11.73},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"pytorch","affectedVersions":[{"vendor":"pytorch","product":"serve","versions":[">= 0.1.0, < 0.9.0"]}],"affected":[{"ecosystem":"PyPI","package":"torchserve","vulnerableRanges":[">=0.1.0, <0.9.0"],"patched":["0.9.0"],"from":["GHSA-m2mj-pr4f-h9jp","PYSEC-2026-1972"],"provenance":"source"}],"summary":{"text":"TorchServe (the pytorch serve product) contains a path traversal flaw, a ZipSlip issue, in its model and workflow management API, which extracts uploaded archives without validating file paths, so archive entries can be written to arbitrary locations within the process's filesystem permissions. An unauthenticated remote attacker with network access to the management API can exploit this simply by uploading a crafted archive, with no user interaction or special configuration required, to plant harmful files (for example, hidden in a public model) on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:35Z"},"euvd":{"id":"EUVD-2023-2995","exploited":false,"provenance":"source"}}