# CVE-2023-48299: TorchServe ZipSlip

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Published: 2023-11-21T01:40:20.000Z
- Modified: 2026-09-10T03:49:47.680Z
- Also known as: GHSA-m2mj-pr4f-h9jp, PYSEC-2026-1972
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pytorch serve: >= 0.1.0, < 0.9.0
- torchserve (PyPI): from 0.1.0 before 0.9.0
- pytorch torchserve: from 0.1.0 before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp> (patch, vendor-advisory, web)
- <https://github.com/pytorch/serve/pull/2634> (patch, web)
- <https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb> (patch, web)
- <https://github.com/pytorch/serve/releases/tag/v0.9.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-48299> (advisory)
- <https://github.com/pytorch/serve> (package)
- <https://pypi.org/project/torchserve> (package)
- <https://github.com/advisories/GHSA-m2mj-pr4f-h9jp> (advisory)

## Sources

- CVE List: [CVE-2023-48299](https://www.cve.org/CVERecord?id=CVE-2023-48299), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-m2mj-pr4f-h9jp](https://github.com/advisories/GHSA-m2mj-pr4f-h9jp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-48299](https://nvd.nist.gov/vuln/detail/CVE-2023-48299), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1972](https://osv.dev/vulnerability/PYSEC-2026-1972), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-48299 · Whole record: https://cve.day/CVE-2023-48299.json · Rebuilt by cve.day 2026-11-25T22:58:30.637Z
