{"api_version":"1","generated_at":"2026-07-24T20:05:24+00:00","cve":"CVE-2023-43654","urls":{"html":"https://cve.report/CVE-2023-43654","api":"https://cve.report/api/cve/CVE-2023-43654.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-43654","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-43654"},"summary":{"title":"CVE-2023-43654","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-09-28 23:15:00","updated_at":"2023-10-31 18:35:00"},"problem_types":["CWE-918"],"metrics":[],"references":[{"url":"http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html","refsource":"MISC","tags":[],"title":"PyTorch Model Server Registration / Deserialization Remote Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pytorch/serve/releases/tag/v0.8.2","name":"https://github.com/pytorch/serve/releases/tag/v0.8.2","refsource":"MISC","tags":[],"title":"Release TorchServe v0.8.2 Release Notes · pytorch/serve · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w","name":"https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w","refsource":"MISC","tags":[],"title":"TorchServe SSRF · Advisory · pytorch/serve · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pytorch/serve/pull/2534","name":"https://github.com/pytorch/serve/pull/2534","refsource":"MISC","tags":[],"title":"Issue warning about allowed_urls when default value is used by namannandan · Pull Request #2534 · pytorch/serve · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-43654","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43654","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"43654","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pytorch","cpe5":"torchserve","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-43654","qid":"995497","title":"Python (Pip) Security Update for torchserve (GHSA-8fxr-qfr9-p34w)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-43654","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-918: Server-Side Request Forgery (SSRF)","cweId":"CWE-918"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"pytorch","product":{"product_data":[{"product_name":"serve","version":{"version_data":[{"version_affected":"=","version_value":">= 0.1.0, < 0.8.2"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w","refsource":"MISC","name":"https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w"},{"url":"https://github.com/pytorch/serve/pull/2534","refsource":"MISC","name":"https://github.com/pytorch/serve/pull/2534"},{"url":"https://github.com/pytorch/serve/releases/tag/v0.8.2","refsource":"MISC","name":"https://github.com/pytorch/serve/releases/tag/v0.8.2"},{"url":"http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html","refsource":"MISC","name":"http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html"}]},"source":{"advisory":"GHSA-8fxr-qfr9-p34w","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-09-28 23:15:00","lastModifiedDate":"2023-10-31 18:35:00","problem_types":["CWE-918"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pytorch:torchserve:*:*:*:*:*:*:*:*","versionStartIncluding":"0.1.0","versionEndExcluding":"0.8.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}