Relative Path Traversal in TorchServe - CVE-2023-48299
Published: November 21, 2023 / Updated: November 24, 2026
Vulnerability details
The vulnerability allows a remote attacker to write files outside the intended extraction directory within the TorchServe process's filesystem permissions.
The vulnerability exists due to insufficient validation of relative paths in TorchServe's archive extractor when unpacking model or workflow archives. A remote attacker can supply a malicious archive through the management API or distribute it as a public model to cause unauthorized file writes when TorchServe extracts it.