Pytorch vulnerabilities
10 vulnerabilities
Known vulnerabilities in Pytorch products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 5 products.
Products
5- Torchserve5 vulnerabilities
- Serve4 vulnerabilities
- Pytorch2 vulnerabilities
- Vision2 vulnerabilities
- Pytorch/Serve1 vulnerabilities
RoutineCVE-2026-137507pytorch · vision +3 moretorchvision before 0.29.2 Path Traversal via Tar Archive Extractiontorchvision before 0.29.2 contains a path traversal vulnerability in _extract_tar() that allows attackers to write files outside the extraction directory by supplying crafted tar archives. Attackers controlling archives passed to extract_archive() or download_and_extract_archive() can use .. paths, absolute paths, or symlinks to overwrite Python modules and achieve code execution.CVSS7.1HighEPSS0.94%RoutineCVE-2026-123974pytorch · torchserve +2 morepytorch/serve: Local privilege escalation through insecure temporary pathIn all versions of PyTorch's TorchServe, a predictable extraction directory in /tmp lets a local user swap the model handler and run code as the TorchServe service account leading to local privilege escalation.CVSS7.8HighEPSS0.14%PrioritiseCVE-2026-65918pytorch · vision +4 morePyTorch torchvision GIF Decoder Out-of-bounds Heap ReadPyTorch torchvision through 0.28.0, fixed in commit 4e05dc2, contains an out-of-bounds heap read vulnerability in the GIF decoder's read_from_tensor callback that passes unclamped length to memcpy. Attackers can supply malicious or truncated GIF files to cause denial of service via segmentation fault or disclose adjacent heap memory contents.CVSS7.1HighEPSS0.33%PrioritiseCVE-2026-24747pytorch +15 morePyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint FilesPyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt memory and potentially lead to arbitrary code execution. Version 2.10.0 fixes the issue.CVSS8.8HighEPSS0.80%PrioritiseCVE-2025-32434pytorch +4 morePyTorch: `torch.load` with `weights_only=True` leads to remote code executionPyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.CVSS9.8CriticalEPSS2.37%RoutineCVE-2024-6577pytorch · pytorch/serve +1 moreUnclaimed S3 Bucket Usage in pytorch/serveIn the latest version of pytorch/serve, the script 'upload_results_to_s3.sh' references the S3 bucket 'benchmarkai-metrics-prod' without ensuring its ownership or confirming its accessibility. This could lead to potential security vulnerabilities or unauthorized access to the bucket if it is not properly secured or claimed by the appropriate entity. The issue may result in data breaches, exposure of proprietary information, or unauthorized modifications to stored data.CVSS6.3MediumEPSS0.39%PrioritiseCVE-2024-35198pytorch · serve +2 moreTorchServe bypass allowed_urls configurationTorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. TorchServe 's check on allowed_urls configuration can be by-passed if the URL contains characters such as ".." but it does not prevent the model from being downloaded into the model store. Once a file is downloaded, it can be referenced without providing a URL the second time, which effectively bypasses the allowed_urls security check. Customers using PyTorch inference Deep Learning Containers (DLC) through Amazon SageMaker and EKS are not affected. This issue in TorchServe has been fixed by validating the URL without characters such as ".." before downloading see PR #3082. TorchServe release 0.11.0 includes the fix to address this vulnerability. Users are advised to upgrade. There are no known workarounds for this vulnerability.CVSS9.8CriticalEPSS0.79%PrioritiseCVE-2024-35199pytorch · serve +2 moreTorchServe gRPC Port ExposureTorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. In affected versions the two gRPC ports 7070 and 7071, are not bound to [localhost](http://localhost/) by default, so when TorchServe is launched, these two interfaces are bound to all interfaces. Customers using PyTorch inference Deep Learning Containers (DLC) through Amazon SageMaker and EKS are not affected. This issue in TorchServe has been fixed in PR #3083. TorchServe release 0.11.0 includes the fix to address this vulnerability. Users are advised to upgrade. There are no known workarounds for this vulnerability.CVSS8.2HighEPSS0.63%RoutineCVE-2023-48299pytorch · serve +2 moreTorchServe ZipSlipTorchServe is a tool for serving and scaling PyTorch models in production. Starting in version 0.1.0 and prior to version 0.9.0, using the model/workflow management API, there is a chance of uploading potentially harmful archives that contain files that are extracted to any location on the filesystem that is within the process permissions. Leveraging this issue could aid third-party actors in hiding harmful code in open-source/public models, which can be downloaded from the internet, and take advantage of machines running Torchserve. The ZipSlip issue in TorchServe has been fixed by validating the paths of files contained within a zip archive before extracting them. TorchServe release 0.9.0 includes fixes to address the ZipSlip vulnerability.CVSS5.3MediumEPSS0.83%PrioritiseCVE-2023-43654pytorch · serve +2 moreTorchServe Server-Side Request ForgeryTorchServe is a tool for serving and scaling PyTorch models in production. TorchServe default configuration lacks proper input validation, enabling third parties to invoke remote HTTP download requests and write files to the disk. This issue could be taken advantage of to compromise the integrity of the system and sensitive data. This issue is present in versions 0.1.0 to 0.8.1. A user is able to load the model of their choice from any URL that they would like to use. The user of TorchServe is responsible for configuring both the allowed_urls and specifying the model URL to be used. A pull request to warn the user when the default value for allowed_urls is used has been merged in PR #2534. TorchServe release 0.8.2 includes this change. Users are advised to upgrade. There are no known workarounds for this issue.CVSS10.0CriticalEPSS42.49%