CVE-2024-35198 TorchServe bypass allowed_urls configuration
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Ubuntu
Description
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.
Upgrade path
5 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/pytorch?arch=src(Ubuntu 22.04) | = 1.7.1-7; = 1.8.1-4; All versions | No fix listed | No fix yet |
| ubuntu/pytorch?arch=src(Ubuntu 24.10) | = 2.1.2+dfsg-4ubuntu1; = 2.1.2+dfsg-4ubuntu2; = 2.4.1-1ubuntu1; All versions | No fix listed | No fix yet |
| pypi torchserve(PyPI) | < 0.11.0; = 0.0.1b20200409; = 0.1.1; = 0.2.0 +19 more | 0.11.0 | Fixed |
| PyTorch TorchServe | >= 0.4.2, < 0.11.0 | 0.11.0 | Fixed |
| PyTorch serve | = >= 0.4.2, < 0.11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi torchserve(PyPI) | < 0.11.0 | 0.11.0 |
| pypi torchserve(PyPI) | = 0.0.1b20200409 | No fix listed |
| pypi torchserve(PyPI) | = 0.1.1 | No fix listed |
| pypi torchserve(PyPI) | = 0.10.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.2.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.2.2 | No fix listed |
| pypi torchserve(PyPI) | = 0.3.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.3.1 | No fix listed |
| pypi torchserve(PyPI) | = 0.4.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.4.1 | No fix listed |
| pypi torchserve(PyPI) | = 0.4.2 | No fix listed |
| pypi torchserve(PyPI) | = 0.5.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.5.1 | No fix listed |
| pypi torchserve(PyPI) | = 0.5.2 | No fix listed |
| pypi torchserve(PyPI) | = 0.5.3 | No fix listed |
| pypi torchserve(PyPI) | = 0.6.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.6.1 | No fix listed |
| pypi torchserve(PyPI) | = 0.7.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.7.1 | No fix listed |
| pypi torchserve(PyPI) | = 0.8.0 | No fix listed |
| pypi torchserve(PyPI) | = 0.8.1 | No fix listed |
| pypi torchserve(PyPI) | = 0.8.2 | No fix listed |
| pypi torchserve(PyPI) | = 0.9.0 | No fix listed |
| PyTorch serve | = >= 0.4.2, < 0.11.0 | No fix listed |
| PyTorch TorchServe | >= 0.4.2, < 0.11.0 | 0.11.0 |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/pytorch?arch=src(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/pytorch?arch=src(Ubuntu:22.04) | = 1.7.1-7 | No fix listed |
| ubuntu/pytorch?arch=src(Ubuntu:22.04) | = 1.8.1-4 | No fix listed |
| ubuntu/pytorch?arch=src(Ubuntu:24.10) | All versions | No fix listed |
| ubuntu/pytorch?arch=src(Ubuntu:24.10) | = 2.1.2+dfsg-4ubuntu1 | No fix listed |
| ubuntu/pytorch?arch=src(Ubuntu:24.10) | = 2.1.2+dfsg-4ubuntu2 | No fix listed |
| ubuntu/pytorch?arch=src(Ubuntu:24.10) | = 2.4.1-1ubuntu1 | No fix listed |
References
- https://github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2 issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/pytorch/serve/pull/3082 issue-tracking patch
- github.com patch
- github.com product
- https://github.com/pytorch/serve/releases/tag/v0.11.0 issue-tracking release-notes
- pypi.org product
- github.com vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking