CVE-2023-43654
High PUBLISHEDTorchServe Server-Side Request Forgery
Not yet in CISA KEV
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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.
- CVE Published
- Sep 28, 2023
- Exploitation Reported
- Sep 28, 2023
- CVSS
- 10.0 Critical
- EPSS
- —
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| pytorch |
torchserve
|
0.1.0 to < 0.8.2 |
Affected |
| pytorch |
serve
|
>= 0.1.0, < 0.8.2 |
Affected |
CVE References
- https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w github.com · CVE Record https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w
- https://github.com/pytorch/serve/pull/2534 github.com · CVE Record https://github.com/pytorch/serve/pull/2534
- https://github.com/pytorch/serve/releases/tag/v0.8.2 github.com · CVE Record https://github.com/pytorch/serve/releases/tag/v0.8.2
- packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registrati... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Regi...
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| The Shadowserver First | 2023-09-28 22:10 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-43654.yaml | Apr 25, 2025 |
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/torchserver_cve_2023_43654.rb | Apr 28, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users via the Pro API.
Learn About Virtual PatchesCVSS Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Exploitation Status
Exploited in the wild
Recorded 2023-09-28 22:10:09 UTC · The Shadowserver
Proof of concept available
Recorded 2024-05-28 10:02:13 UTC · GitHub
Weaknesses (CWE)
-
Server-Side Request Forgery (SSRF)
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/torchserver_cve_2023_43654.rb | Apr 28, 2025 |
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-43654.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2024-05-28 10:02:13 UTC · 2 stars
Demo for CVE-2023-43654 - Remote Code Execution in PyTorch TorchServe
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
15:02 UTC about 1 year ago15:02 UTC · about 1 year ago
Metasploit module available
Exploit module available
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
10:02 UTC about 2 years ago10:02 UTC · about 2 years ago
Public PoC available
Public proof-of-concept code published
-
22:10 UTC almost 3 years ago22:10 UTC · almost 3 years ago
CVE published
Vulnerability disclosed publicly
-
22:10 UTC almost 3 years ago22:10 UTC · almost 3 years ago
Added to KEVIntel KEV Feed
High-confidence, third-party attested exploitation
-
15:35 UTC almost 3 years ago15:35 UTC · almost 3 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2023-43654
{
"cve_id": "CVE-2023-43654",
"title": "TorchServe Server-Side Request Forgery",
"affected_vendor": "pytorch",
"affected_product": "serve",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "High",
"cvss_score": 10.0,
"epss_score": null,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}