Relative Path Traversal in TorchServe - CVE-2023-48299

 

Relative Path Traversal in TorchServe - CVE-2023-48299

Published: November 21, 2023 / Updated: November 24, 2026


Vulnerability identifier: #VU169915
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-48299
CWE-ID: CWE-23
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

TorchServe

How to mitigate CVE-2023-48299

Install security update from vendor's website.

TorchServe - update to 0.9.0

External References

Related Security Bulletins