Skip to content
MediumVulnerability

CVE-2023-48299: TorchServe archive extraction path traversal via model management API

Identifier
CVE-2023-48299
Published
Record updated
View JSON
Affected
  • torchserve >= 0.1.0, < 0.9.0
Fixed in
0.9.0
  • released October 12, 2023, 41 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

TorchServe versions from 0.1.0 up to but not including 0.9.0 are affected by CVE-2023-48299. Through the model/workflow management API, an attacker can upload archives that extract files to any location the process can write to. This could let third parties hide harmful code in public models and compromise machines running TorchServe.

Mitigation

The ZipSlip issue has been fixed by validating the paths of files in a zip archive before extraction. TorchServe release 0.9.0 includes the fix.