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

- Priority: **Prioritise**
- Reason: Weaponized exploit (Metasploit, 03-10-2023)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-09-28 · Modified: 2025-02-13
- Aliases: GHSA-8fxr-qfr9-p34w, PYSEC-2026-553
- Record: https://cvemate.com/vulnerability/CVE-2023-43654 · JSON: https://cvemate.com/vulnerability/CVE-2023-43654/json

## Description

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

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS: 42.495%, percentile 98.736%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference, metasploit)

## Affected

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

## References

- <https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w>
- <https://github.com/pytorch/serve/pull/2534>
- <https://github.com/pytorch/serve/releases/tag/v0.8.2>
- <http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43654>
- <https://github.com/pytorch/serve>
- <https://pypi.org/project/torchserve>
- <https://github.com/advisories/GHSA-8fxr-qfr9-p34w>

---

Data as of 2026-12-05T07:21:34.050Z. 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
