Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS13eGN4LWdnOWMtZndwMs4AA-AB
TorchServe vulnerable to bypass of allowed_urls configuration
Impact
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.
Patches
This issue in TorchServe has been fixed by validating the URL without characters such as ".." before downloading: #3082.
TorchServe release 0.11.0 includes the fix to address this vulnerability.
References
Thank Kroll Cyber Risk for for responsibly disclosing this issue.
If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page or directly via email to [email protected]. Please do not create a public GitHub issue.
Permalink: https://github.com/advisories/GHSA-wxcx-gg9c-fwp2JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13eGN4LWdnOWMtZndwMs4AA-AB
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 6 months ago
Updated: 5 months ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Percentage: 0.00045
EPSS Percentile: 0.17541
Identifiers: GHSA-wxcx-gg9c-fwp2, CVE-2024-35198
References:
- https://github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2
- https://github.com/pytorch/serve/pull/3082
- https://github.com/pytorch/serve/commit/cdba0fd449c2fd23dcf37c54c0784035541d5114
- https://github.com/pytorch/serve/releases/tag/v0.11.0
- https://nvd.nist.gov/vuln/detail/CVE-2024-35198
- https://github.com/advisories/GHSA-wxcx-gg9c-fwp2
Blast Radius: 20.3
Affected Packages
pypi:torchserve
Dependent packages: 7Dependent repositories: 119
Downloads: 36,128 last month
Affected Version Ranges: < 0.11.0
Fixed in: 0.11.0
All affected versions: 0.1.1, 0.2.0, 0.2.2, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.10.0
All unaffected versions: 0.11.0, 0.11.1, 0.12.0