{"id":"CVE-2023-43654","published":"2023-09-28T22:10:09Z","modified":"2025-02-13T17:13:27Z","title":"TorchServe Server-Side Request Forgery","vendor":"pytorch","product":"serve","tier":"core","eol":null,"affectedVersions":[{"vendor":"pytorch","product":"serve","versions":[">= 0.1.0, < 0.8.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-09-23T18:11:45.025680Z","from":"CISA ADP","provenance":"source"},"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"TorchServe, PyTorch's tool for serving and scaling models in production, contains a server-side request forgery flaw in its default configuration, where missing input validation lets it be made to send HTTP download requests and write files to disk. An attacker with network access and no authentication or user interaction can make the server load a model from any URL they choose, since the default allowed_urls setting does not restrict this.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:11:50Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.50561,"percentile":0.99185,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-11-26","exploitedFirstSeen":"2025-11-26","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2023-43654","date":"2025-11-26"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pytorch/serve/pull/2534","tags":["x_refsource_MISC"]},{"url":"https://github.com/pytorch/serve/releases/tag/v0.8.2","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"PyPI","package":"torchserve","vulnerableRanges":[">=0.1.0, <0.8.2"],"patched":["0.8.2"],"from":["GHSA-8fxr-qfr9-p34w","PYSEC-2026-553"],"provenance":"source"}],"advisories":[{"id":"GHSA-8fxr-qfr9-p34w","url":"https://github.com/advisories/GHSA-8fxr-qfr9-p34w","severity":"CRITICAL","ecosystem":"PyPI","package":"torchserve","vulnerableRanges":[">=0.1.0, <0.8.2"],"patched":["0.8.2"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2023-2697","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-2697","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2023-10-02","earliestUrl":"https://github.com/OligoCyberSecurity/ShellTorchChecker","repos":[{"name":"OligoCyberSecurity/ShellTorchChecker","url":"https://github.com/OligoCyberSecurity/ShellTorchChecker","stars":40,"created":"2023-10-02"},{"name":"OligoCyberSecurity/CVE-2023-43654","url":"https://github.com/OligoCyberSecurity/CVE-2023-43654","stars":3,"created":"2024-05-28"}]},"metasploit":[{"name":"PyTorch Model Server Registration and Deserialization RCE","module":"exploit/multi/http/torchserver_cve_2023_43654","type":"exploit","disclosureDate":"2023-10-03","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/torchserver_cve_2023_43654.rb"}],"nuclei":[{"id":"CVE-2023-43654","name":"PyTorch TorchServe SSRF","severity":"critical","path":"http/cves/2023/CVE-2023-43654.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-43654.yaml"}],"first":{"date":"2023-10-02","source":"PoC-in-GitHub","url":"https://github.com/OligoCyberSecurity/ShellTorchChecker"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2023-09-28","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2023-43654","provenance":"source"},{"date":"2023-10-02","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub; later: Metasploit 2023-10-03","url":"https://github.com/OligoCyberSecurity/ShellTorchChecker","provenance":"source"},{"date":"2025-11-26","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2023-43654","provenance":"source"}],"speed":{"daysToPublicExploit":4,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":71.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 364 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.84,"detail":"percentile 0.9919"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 2 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}