CVE-2023-43654: TorchServe Server-Side Request Forgery
Vulnerability summary
CVE-2023-43654 is a critical (CVSS 10.0) Server-Side Request Forgery vulnerability in pytorch serve. EPSS estimates a 42.49% chance of exploitation in the next 30 days, higher than 98.7% of scored vulnerabilities. 2 public exploits are recorded.
Weaponized exploit (Metasploit, 03-10-2023)
Source freshness unavailable
How is this decided?Timeline
- 28-09-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
42.49%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 42.49% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundExploit Reference (packetstormsecurity.com)
Maturity: unknown
PyTorch Model Server Registration and Deserialization RCE
exploit/multi/http/torchserver_cve_2023_43654
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Pytorch2 products
- serve≥ 0.1.0, < 0.8.2
- torchserve≥ 0.1.0, < 0.8.2
PyPI1 product
- torchserve≥ 0.1.0, < 0.8.2
2 vendors · 3 products
References
8 links- github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34wX Refsource CONFIRMWEBVendor Advisory
- github.com/pytorch/servePACKAGE
- pypi.org/project/torchservePACKAGE