CVE-2024-35198

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-35198
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35198.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35198
Aliases
Related
Published
2024-07-18T22:40:08Z
Modified
2025-10-22T18:42:31.474120Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
TorchServe bypass allowed_urls configuration
Details

TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. TorchServe 's check on allowedurls 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 allowedurls 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.

Database specific
{
    "cwe_ids": [
        "CWE-706"
    ]
}
References

Affected packages

Git / github.com/pytorch/serve

Affected ranges

Type
GIT
Repo
https://github.com/pytorch/serve
Events

Affected versions

v0.*

v0.4.2
v0.5.0
v0.5.1
v0.5.2
v0.6.0
v0.7.0
v0.7.1
v0.8.0
v0.8.1
v0.8.2
v0.9.0