CVE-2023-43654 in Pytorch Torchserve
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 s...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Pytorch | Torchserve | ≥ 0.1.0, < 0.8.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-43654 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-055632-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-09-28 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-918: Server-Side Request Forgery (SSRF)
Attacker causes the server to make HTTP requests to attacker-chosen destinations, potentially reaching internal services.
Related attack patterns (CAPEC)
CAPEC-664 Server Side Request Forgery via CWE-918
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
TorchServe, a tool for serving and scaling PyTorch models, has a critical vulnerability due to improper input validation in its default configuration. This allows attackers to perform remote HTTP downloads and write files to the disk, potentially compromising system integrity and sensitive data.
An attacker can exploit the lack of input validation to send malicious HTTP requests to the TorchServe server. These requests can instruct the server to download and write arbitrary files to the disk, which could lead to code execution or data exfiltration.
Questions
What is CVE-2023-43654?
TorchServe, a tool for serving and scaling PyTorch models, has a critical vulnerability due to improper input validation in its default configuration. This allows attackers to perform remote HTTP downloads and write files to the disk, potentially compromising system integrity and sensitive data.
What is the CVSS score for CVE-2023-43654?
CVE-2023-43654 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 50.6%.
Is CVE-2023-43654 actively exploited?
No confirmed active exploitation of CVE-2023-43654 as of 2026-09-25.
How do I remediate CVE-2023-43654?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2023-43654?
CVE-2023-43654 affects Pytorch Torchserve.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Pytorch","product":"Torchserve","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.