Incorrect Behavior Order: Validate Before Canonicalize in TorchServe - CVE-2024-35198

 

Incorrect Behavior Order: Validate Before Canonicalize in TorchServe - CVE-2024-35198

Published: July 18, 2024 / Updated: November 24, 2026


Vulnerability identifier: #VU169914
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-35198
CWE-ID: CWE-180
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass TorchServe's model URL allowlist and load a model from an unapproved source.

The vulnerability exists due to inconsistent URL validation in TorchServe's allowed_urls check when processing model downloads. A remote attacker can supply a model URL that the allowlist and downloader interpret differently to make an unapproved model available for loading from the model store.


Affected software

TorchServe

How to mitigate CVE-2024-35198

Install security update from vendor's website.

TorchServe - update to 0.11.0

External References

Related Security Bulletins