{"id":"CVE-2024-35198","published":"2024-07-18T22:40:08Z","modified":"2024-08-07T16:00:46Z","title":"TorchServe bypass allowed_urls configuration","vendor":"pytorch","product":"serve","tier":"tail","description":{"text":"TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. TorchServe 's check on allowed_urls configuration can be by-passed if the URL contains characters such as \"..\" but it does not prevent the model from being downloaded into the model store. Once a file is downloaded, it can be referenced without providing a URL the second time, which effectively bypasses the allowed_urls security check. Customers using PyTorch inference Deep Learning Containers (DLC) through Amazon SageMaker and EKS are not affected. This issue in TorchServe has been fixed by validating the URL without characters such as \"..\" before downloading see PR #3082. TorchServe release 0.11.0 includes the fix to address this vulnerability. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00799,"percentile":0.5745,"provenance":"source"},"cwes":[{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"}],"references":[{"url":"https://github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pytorch/serve/pull/3082","tags":["x_refsource_MISC"]},{"url":"https://github.com/pytorch/serve/releases/tag/v0.11.0","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":11.49},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"pytorch","affectedVersions":[{"vendor":"pytorch","product":"serve","versions":[">= 0.4.2, < 0.11.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-19T16:58:05.654373Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"torchserve","vulnerableRanges":["<0.11.0"],"patched":["0.11.0"],"from":["GHSA-wxcx-gg9c-fwp2","PYSEC-2026-554"],"provenance":"source"}],"summary":{"text":"TorchServe, PyTorch's tool for serving and scaling models in production (the serve component of the pytorch product), contains a flaw where the allowed_urls check can be bypassed by URLs containing sequences such as \"..\", allowing a model file to be downloaded into the model store. An attacker with network access can exploit this without authentication or user interaction, since a file downloaded once can then be referenced later without a URL and so evade the allowed_urls restriction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:22Z"},"euvd":{"id":"EUVD-2024-2442","exploited":false,"provenance":"source"}}