# CVE-2023-48299: TorchServe ZipSlip

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-11-21 · Modified: 2024-08-02
- Aliases: GHSA-m2mj-pr4f-h9jp, PYSEC-2026-1972
- Record: https://cvemate.com/vulnerability/CVE-2023-48299 · JSON: https://cvemate.com/vulnerability/CVE-2023-48299/json

## 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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.829%, percentile 58.795%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- PyPI torchserve (PyPI): ≥ 0.1.0, \< 0.9.0
- pytorch serve: ≥ 0.1.0, \< 0.9.0
- pytorch torchserve: ≥ 0.1.0, \< 0.9.0

## References

- <https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp>
- <https://github.com/pytorch/serve/pull/2634>
- <https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb>
- <https://github.com/pytorch/serve/releases/tag/v0.9.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-48299>
- <https://github.com/pytorch/serve>
- <https://pypi.org/project/torchserve>
- <https://github.com/advisories/GHSA-m2mj-pr4f-h9jp>

---

Data as of 2026-12-05T07:21:27.152Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
