TorchServe Server-Side Request Forgery
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pytorch | serve | 0.1.0 to before 0.8.2 | 0.8.2 | Patch available | CNA |
| — | torchserve (PyPI) | 0.1.0 to before 0.8.2 | 0.8.2 | Patch available | GHSA-8fxr-qfr9-p34w |
- serve Vendorpytorch Affected 0.1.0 to before 0.8.2 Fixed in 0.8.2 Patch available CNA
- torchserve (PyPI) Vendor— Affected 0.1.0 to before 0.8.2 Fixed in 0.8.2 Patch available GHSA-8fxr-qfr9-p34w
Remediation
- Fix · CNA serve (pytorch) Fixed in 0.8.2
- Fix · GHSA-8fxr-qfr9-p34w torchserve (PyPI) Fixed in 0.8.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-43654
- 2026-10-03 Alias added: GHSA-8fxr-qfr9-p34w
References
Advisory 2
More pytorch Torchserve vulnerabilities
- TI-2024-23271 TorchServe gRPC Port Exposure CVSS 3.1HIGH 8.2
- TI-2024-23270 TorchServe bypass allowed_urls configuration CVSS 3.1CRITICAL 9.8
- TI-2023-26162 TorchServe ZipSlip CVSS 3.1MEDIUM 5.3
Sources
- CVE-2023-43654 · CVE Program
- CVE-2023-43654 · NVD
- FIRST EPSS
- GHSA-8fxr-qfr9-p34w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences