# CVE-2023-43654: TorchServe Server-Side Request Forgery

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- 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): 42.5%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-09-28T22:10:09.497Z
- Modified: 2026-09-10T03:50:03.501Z
- Also known as: GHSA-8fxr-qfr9-p34w, PYSEC-2026-553
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

TorchServe is a tool for serving and scaling PyTorch models in production. TorchServe default configuration lacks proper input validation, enabling third parties to invoke remote HTTP download requests and write files to the disk. This issue could be taken advantage of to compromise the integrity of the system and sensitive data. This issue is present in versions 0.1.0 to 0.8.1. A user is able to load the model of their choice from any URL that they would like to use. The user of TorchServe is responsible for configuring both the allowed_urls and specifying the model URL to be used. A pull request to warn the user when the default value for allowed_urls is used has been merged in PR #2534. TorchServe release 0.8.2 includes this change. Users are advised to upgrade. There are no known workarounds for this issue.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html> (exploit, third-party-advisory, vdb-entry, web)
- <https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w> (vendor-advisory, web)
- <https://github.com/pytorch/serve/pull/2534> (issue-tracking, web)
- <https://github.com/pytorch/serve/releases/tag/v0.8.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43654> (advisory)
- <https://github.com/pytorch/serve> (package)
- <https://pypi.org/project/torchserve> (package)
- <https://github.com/advisories/GHSA-8fxr-qfr9-p34w> (advisory)

## Sources

- CVE List: [CVE-2023-43654](https://www.cve.org/CVERecord?id=CVE-2023-43654), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-8fxr-qfr9-p34w](https://github.com/advisories/GHSA-8fxr-qfr9-p34w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-43654](https://nvd.nist.gov/vuln/detail/CVE-2023-43654), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-553](https://osv.dev/vulnerability/PYSEC-2026-553), CC-BY-4.0, modified 2026-07-01

---

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