Incorrect Behavior Order: Validate Before Canonicalize in TorchServe - CVE-2024-35198
Published: July 18, 2024 / Updated: November 24, 2026
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.