Pytorch
Monthly
torchvision before 0.29.2 extracts tar archives without validating member paths, so a crafted archive containing '../' entries, absolute paths, or symlinks that point outside the destination can write files anywhere the extracting process has permissions - including over Python modules that the process later imports, which turns the write primitive into code execution. The trigger is not remote on its own: exploitation requires the victim to pass an attacker-controlled archive (or an attacker-hosted download) to extract_archive() or download_and_extract_archive(), which is why the CVSS 4.0 vector scores 7.1 with UI:P rather than as a drive-by network exploit. Fixes are published in the 0.29.2 release; no public exploit code has been identified at time of analysis and the CVE is not in CISA KEV.
PyTorch's checkpoint format conversion utilities (torch_save_to_dcp) deserialize attacker-supplied checkpoint data without adequate validation, letting a crafted file execute arbitrary code in the context of the current user when the victim opens or converts it. The flaw is local and requires user interaction (CVSS 3.0 7.8, AV:L/AC:L/PR:N/UI:R/S:U), so the attacker must first deliver the malicious checkpoint and convince the target to run the conversion path; there is no remotely reachable service component and code executes only with the victim's own privileges. Exploitation status per the available intelligence: no public exploit identified at time of analysis; a public ZDI advisory (ZDI-26-1059 / ZDI-CAN-32834) documents the issue.
Deserialization of untrusted data in PyTorch's FileSystemReader class can lead to arbitrary code execution in the context of the current process when a victim loads or processes attacker-supplied data through that reader. The flaw is rated CVSS 7.8 (HIGH) with the vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, meaning no privileges are required (PR:N) and no credentials are needed, but the attack path is local (AV:L) and depends on the victim actively loading the malicious artifact (UI:R) rather than on a network-facing, zero-click path. Exposure is therefore concentrated in workflows that ingest externally sourced PyTorch artifacts such as downloaded models, checkpoints, or files from a shared or untrusted pipeline; no public exploit has been identified at the time of analysis, and the issue was reported through Trend Micro ZDI as ZDI-CAN-32600 / ZDI-26-1054.
Remote code execution in the PyTorch Foundation's PyTorch arises when the load_state_dict_from_url function deserializes untrusted checkpoint data, letting an attacker-influenced model source run arbitrary code in the context of the loading process. The CVSS:3.1 vector (AV:L/AC:L/PR:N/UI:R) means unauthenticated attackers can exploit it, but the victim must take an action - visiting a malicious page or opening/loading a malicious model file - and the artifact must be processed on the victim host rather than against an exposed network service. Reported through ZDI as ZDI-CAN-32601 with an advisory at ZDI-26-1058, it is not in CISA KEV and no public exploit code has been identified at time of analysis; priority is this_week, with the practical exposure limited to pipelines that pull checkpoints from untrusted or attacker-influenceable sources.
Directory traversal in PyTorch's AOTIModelPackageLoader allows arbitrary code execution in the context of the current user when a victim loads an attacker-supplied AOTInductor model package. The CVSS 7.8 vector is local (AV:L) and requires user interaction (UI:R) with no privileges required (PR:N); exploitation is confined to workflows that load untrusted or externally sourced model packages and runs only with the victim's privileges. No public exploit or active exploitation is identified in the available data, and vuln.today assigns a this_week priority rather than an emergency response.
Arbitrary code execution in PyTorch is triggered when a user opens a crafted PT2 archive, allowing the file to run code in the context of the current process. The flaw is an exposed dangerous function reached during PT2 parsing; the independent assessment vector is local (AV:L), requires user interaction (UI:R), and needs no authentication (PR:N), and the advisory does not specify affected or fixed version boundaries. No CISA KEV entry or public exploit code is identified in the supplied data, and the available signals support a moderate this_week priority rather than emergency action.
PyTorch's load_compiled_function deserializes untrusted data without adequate validation, allowing arbitrary code execution in the context of the current process when a victim opens a crafted serialized/compiled-function file. The issue affects PyTorch Foundation PyTorch installations and requires user interaction, with a local attack vector and no required privileges; risk is concentrated in workflows that load third-party or untrusted model and compiled artifacts. No public exploit was identified at time of analysis, and no CISA KEV entry is indicated in the provided data.
Command injection in PyTorch's AOTIModelPackageLoader allows an attacker to execute arbitrary code in the context of the user who loads a crafted model package. The flaw affects PyTorch (CPE: pytorch_foundation:pytorch:*) with a 7.8 high severity score and a local, user-interaction-gated vector (AV:L/UI:R), so exploitation depends on social or supply-chain delivery rather than a listening network service. No CISA KEV entry is present and no public exploit identified at time of analysis.
PyTorch installations that parse attacker-supplied PT2 files can be induced to execute arbitrary Python code in the context of the current process, because a user-supplied string is used for code execution without proper validation (CWE-94 code injection), rated CVSS 7.8. The assessed vector is local with mandatory user interaction (AV:L/AC:L/PR:N/UI:R) - the target must load or parse a crafted PT2 file, so the realistic delivery paths are social engineering or a compromised model-supply channel rather than a network-reachable, interaction-free attack. No public exploit code or active exploitation is identified at the time of analysis, and the priority signal places this in the this-week remediation cycle rather than an emergency; a public advisory exists (ZDI-26-1052) but no vendor patch version is present in the available data.
Local privilege escalation in PyTorch's TorchServe affects all versions: a predictable, non-randomized model extraction directory under /tmp lets a user who already holds a low-privileged local account swap the model handler file so that attacker code is loaded and executed as the TorchServe service account (CVSS 7.8, CWE-379, AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). It is explicitly not remotely exploitable - prior local access is the gating prerequisite - and no user interaction or non-default configuration is indicated. There is no CISA KEV entry and confirmed active exploitation is not established; a public PoC reference exists (a researcher blog and a GitHub repository), but it is not verified as working exploit code. Priority is 'this_week'.
Deserialization of untrusted data in Ultralytics' torch_load function allows code to run in the context of the current user when a victim loads a malicious PyTorch model or weights file, or visits a page that causes such a file to be deserialized. The assessed vector is CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8): no authentication is required (PR:N), but the Local vector and mandatory user interaction mean there is no unauthenticated network-reachable trigger, and code execution does not cross a privilege boundary. No CISA KEV entry and no public exploit were identified at time of analysis; priority is scheduled remediation this week rather than emergency response.
Arbitrary Python code execution in docTR through 1.1.0 is possible when load_pretrained_params() deserializes an attacker-controlled or tamperable checkpoint on PyTorch releases before 2.6. Unauthenticated attackers can supply the poisoned model artifact, but exploitation is conditionally gated: the victim application must load that checkpoint from a path or URL the attacker controls, and PyTorch must predate 2.6, where torch.load began defaulting to weights_only=True. No public exploit code or CISA KEV entry was identified at time of analysis, and this is a genuine but conditionally-gated code-execution flaw rather than a drop-everything emergency.
Out-of-bounds heap read in PyTorch torchvision's native GIF decoder (versions through 0.28.0) lets attackers who supply a malicious or truncated GIF trigger a segmentation-fault denial of service or leak adjacent heap memory. The flaw sits in the libgif read_from_tensor callback, which passes an unclamped length to memcpy. A public exploit and reproducer exist and an upstream fix is available (commit 4e05dc2), but there is no public exploit identified in the sense of confirmed active exploitation - it is not on CISA KEV. Applications that decode untrusted GIFs via torchvision are affected.
PyTorch is a Python package that provides tensor computation. [CVSS 8.8 HIGH]
TorchServe is a tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
NVIDIA APEX for Linux contains a deserialization of untrusted data vulnerability that affects environments using PyTorch versions earlier than 2.6. An attacker with low privileges on an adjacent network can exploit this flaw to achieve code execution, denial of service, privilege escalation, data tampering, and information disclosure with scope change (CVSS 9.0 Critical). No KEV listing or public POC availability has been reported at this time.
A deserialization vulnerability exists in PyTorch 2.10.0 within the pt2 Loading Handler component, allowing local attackers with low privileges to achieve confidentiality, integrity, and availability impacts through untrusted data processing. The vulnerability (CWE-502) is confirmed to have a publicly available exploit and has been reported to the project via pull request PR#176791, though remediation status remains unclear. With a CVSS score of 5.3 and exploitation probability marked as probable (E:P), this represents a moderate real-world risk primarily affecting local development and deployment environments.
Tencent MimicMotion's create_pipeline function deserializes attacker-controlled checkpoint files through torch.load without weights_only=True, enabling arbitrary code execution when a victim loads a malicious model file. The flaw is local-vector and requires user interaction (CVSS 7.8, AV:L/AC:L/PR:N/UI:R), with code running at the privileges of the MimicMotion process-root-level impact only when the tool is run as root. An upstream commit adds safe_globals and weights_only=True; no public exploit was identified at time of analysis, and EPSS is 0.51% (42nd percentile).
Deserialization of untrusted data in Tencent FaceDetection-DSFD's resnet model loader (model/resnet.py) allows an attacker to execute arbitrary code at root privilege on installations where a victim loads an attacker-supplied PyTorch weights file. The flaw is CWE-502: self.model_path is passed directly to torch.load(), which deserializes a Python pickle without validation. Exploitation requires user interaction (the target must open or be delivered the malicious model file) and the vector is local (AV:L) and unauthenticated (PR:N); EPSS is low at 0.43% (36th percentile), no public exploit code was identified at time of analysis, and the project is a niche open-source research codebase with no default network-exposed service, so risk is serious but constrained rather than a widespread emergency.
Arbitrary code execution in Tencent MedicalNet occurs when the generate_model function in model.py loads a pretrained model via torch.load(opt.pretrain_path) without weights_only=True, allowing a malicious PyTorch checkpoint (.pth) to execute pickle reduce payloads in the context of the user running the training pipeline (typically root in containerized or GPU-server deployments). The attack vector is local (AV:L) with mandatory user interaction (UI:R): a victim must point opt.pretrain_path at, or open, an attacker-supplied model file - there is no network-reachable service and no exploit path against an idle/default installation. No public exploit code or confirmed active exploitation (CISA KEV) was identified at time of analysis, and EPSS is low at 0.51% (42nd percentile), consistent with a tool that is not internet-exposed.
Deserialization of untrusted PyTorch checkpoint files in Tencent TFace allows an attacker who convinces a user to load a malicious .ckpt/.pt weights file to execute arbitrary code, including as root, through torch.load() calls that omit weights_only=True. Tencent TFace is a research-grade face-recognition toolkit, and the vulnerable sinks span the quality evaluation and training scripts (quality/eval.py, quality/train.py), the recognition and generation/uiface training, sampling and ONNX-export code, and the attribute/M3DFEL solver. The weakness is CWE-502 and the assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8): exploitation is local and requires user interaction - the victim must supply or be tricked into using an attacker-controlled checkpoint as a resume, finetuning or eval-model argument - so risk is concentrated in environments that ingest third-party or untrusted model artifacts rather than against a default running service. No public exploit code was identified and the CVE is not in CISA KEV; EPSS is 0.51% (42nd percentile), consistent with a low-volume, tooling-adjacent flaw.
PyTorch checkpoint loading in Tencent TFace (restore_checkpoint and related model-loading paths) deserializes untrusted data, letting an attacker who supplies a malicious .ckpt/.pth file execute arbitrary code in the context of the user running TFace - typically root in the reference ZDI finding. The flaw is local and requires user interaction (CVSS 7.8, AV:L/AC:L/PR:N/UI:R): the victim must explicitly point the toolkit at an attacker-controlled checkpoint, for example via a --resume path or a downloaded 'pretrained' model, so realistic abuse is a supply-chain or social-engineering play against TFace operators rather than remote exploitation of a network service. The upstream project has published a fix commit that adds weights_only=True to every torch.load() call; EPSS is low (0.51%, ~42nd percentile), there is no CISA KEV listing, and no public exploit code was identified at time of analysis.
Arbitrary code execution in Tencent NeuralNLP-NeuralClassifier occurs when the prediction path loads an untrusted PyTorch checkpoint via torch.load() without weights_only=True, allowing a malicious pickle payload to run code in the context of the user (described as root in the ZDI advisory). Affected installations are those using the pre-patch predict.py/_load_checkpoint code or a torch version below 2.6.0; exploitation is local and requires the victim to obtain and load an attacker-controlled model file (UI:R), with no network service directly exposed. No public exploit was identified at time of analysis, the issue is not in CISA KEV, and EPSS is 0.51% (42nd percentile).
Deserialization of untrusted data in Tencent PatrickStar's merge_checkpoint endpoint lets an attacker execute arbitrary code with root privileges when a user loads a crafted checkpoint or opens a malicious page that triggers the endpoint. Exploitation requires user interaction and a local attack path; no authentication is needed, but there is no remote unauthenticated network-triggerable route. EPSS is 0.51% (42nd percentile) and no public exploit has been identified at time of analysis.
An issue was discovered in PyTorch v2.5 and v2.7.1. Rated low severity (CVSS 3.3), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
An issue in pytorch v2.7.0 can lead to a Denial of Service (DoS) when a PyTorch model consists of torch.Tensor.to_sparse() and torch.Tensor.to_dense() and is compiled by Inductor. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Uncontrolled Resource Consumption vulnerability could allow attackers to cause denial of service by exhausting system resources.
A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tensor.view-torch.mv() and is compiled by Inductor, leading to a. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Uncontrolled Resource Consumption vulnerability could allow attackers to cause denial of service by exhausting system resources.
A Name Error occurs in pytorch v2.7.0 when a PyTorch model consists of torch.cummin and is compiled by Inductor, leading to a Denial of Service (DoS). Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long(). Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of Service (DoS). Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
An issue in the component torch.linalg.lu of pytorch v2.8.0 allows attackers to cause a Denial of Service (DoS) when performing a slice operation. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU implementation, negatively affecting nn.Dropout1d,. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of the "other" argument. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Out-of-bounds Write vulnerability could allow attackers to write data beyond allocated buffer boundaries leading to code execution or crashes.
In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
In PyTorch before 2.7.0, when inductor is used, nn.Fold has an assertion error. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers library, specifically in the `convert_tf_weight_name_to_pt_weight_name()` function. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
vLLM, an inference and serving engine for large language models (LLMs), has an issue in versions 0.6.5 through 0.8.4 that ONLY impacts environments using the `PyNcclPipe` KV cache transfer. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
A vulnerability was found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. Rated critical severity (CVSS 9.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
A vulnerability, which was classified as problematic, was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available.
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAllocator.cpp. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
A vulnerability classified as problematic has been found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
A vulnerability classified as critical was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability classified as critical has been found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sending an unexpected POST request to the `/api/v1/state` endpoint of. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the `LightningApp` when running on a Windows host. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
In 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. Rated medium severity (CVSS 6.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
A vulnerability was found in PyTorch 2.6.0+cu124. It has been rated as problematic. [CVSS 2.5 LOW]
A vulnerability was found in PyTorch 2.6.0+cu124. It has been declared as critical. [CVSS 5.0 MEDIUM]
PickleScan before 0.0.23 can be bypassed by flipping specific ZIP file header flag bits, allowing malicious pickle files to evade detection inside PyTorch model archives. An attacker can embed arbitrary code execution payloads that PickleScan misses but PyTorch's torch.load() still processes. A proof-of-concept exists and a patch is available in version 0.0.23.
picklescan before 0.0.23 is vulnerable to a ZIP archive manipulation attack that causes it to crash when attempting to extract and scan PyTorch model archives. By modifying the filename in the ZIP header while keeping the original filename in the directory listing, an attacker can make PickleScan raise a BadZipFile error. However, PyTorch's more forgiving ZIP implementation still allows the mod...
In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated high severity (CVSS 8.2), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Exposure of Resource to Wrong Sphere vulnerability could allow attackers to access resources from an unintended security context.
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
Pytorch before v2.2.0 has an Out-of-bounds Read vulnerability via the component torch/csrc/jit/mobile/flatbuffer_loader.cpp. Rated medium severity (CVSS 5.5), this vulnerability is remotely exploitable, low attack complexity.
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp. Rated high severity (CVSS 7.8), this vulnerability is no authentication required, low attack complexity. This Use After Free vulnerability could allow attackers to access freed memory to execute arbitrary code or crash the application.
PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. Rated medium severity (CVSS 4.0), this vulnerability is no authentication required, low attack complexity.
TorchServe is a tool for serving and scaling PyTorch models in production. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Path Traversal vulnerability could allow attackers to access files and directories outside the intended path.
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
torchvision before 0.29.2 extracts tar archives without validating member paths, so a crafted archive containing '../' entries, absolute paths, or symlinks that point outside the destination can write files anywhere the extracting process has permissions - including over Python modules that the process later imports, which turns the write primitive into code execution. The trigger is not remote on its own: exploitation requires the victim to pass an attacker-controlled archive (or an attacker-hosted download) to extract_archive() or download_and_extract_archive(), which is why the CVSS 4.0 vector scores 7.1 with UI:P rather than as a drive-by network exploit. Fixes are published in the 0.29.2 release; no public exploit code has been identified at time of analysis and the CVE is not in CISA KEV.
PyTorch's checkpoint format conversion utilities (torch_save_to_dcp) deserialize attacker-supplied checkpoint data without adequate validation, letting a crafted file execute arbitrary code in the context of the current user when the victim opens or converts it. The flaw is local and requires user interaction (CVSS 3.0 7.8, AV:L/AC:L/PR:N/UI:R/S:U), so the attacker must first deliver the malicious checkpoint and convince the target to run the conversion path; there is no remotely reachable service component and code executes only with the victim's own privileges. Exploitation status per the available intelligence: no public exploit identified at time of analysis; a public ZDI advisory (ZDI-26-1059 / ZDI-CAN-32834) documents the issue.
Deserialization of untrusted data in PyTorch's FileSystemReader class can lead to arbitrary code execution in the context of the current process when a victim loads or processes attacker-supplied data through that reader. The flaw is rated CVSS 7.8 (HIGH) with the vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, meaning no privileges are required (PR:N) and no credentials are needed, but the attack path is local (AV:L) and depends on the victim actively loading the malicious artifact (UI:R) rather than on a network-facing, zero-click path. Exposure is therefore concentrated in workflows that ingest externally sourced PyTorch artifacts such as downloaded models, checkpoints, or files from a shared or untrusted pipeline; no public exploit has been identified at the time of analysis, and the issue was reported through Trend Micro ZDI as ZDI-CAN-32600 / ZDI-26-1054.
Remote code execution in the PyTorch Foundation's PyTorch arises when the load_state_dict_from_url function deserializes untrusted checkpoint data, letting an attacker-influenced model source run arbitrary code in the context of the loading process. The CVSS:3.1 vector (AV:L/AC:L/PR:N/UI:R) means unauthenticated attackers can exploit it, but the victim must take an action - visiting a malicious page or opening/loading a malicious model file - and the artifact must be processed on the victim host rather than against an exposed network service. Reported through ZDI as ZDI-CAN-32601 with an advisory at ZDI-26-1058, it is not in CISA KEV and no public exploit code has been identified at time of analysis; priority is this_week, with the practical exposure limited to pipelines that pull checkpoints from untrusted or attacker-influenceable sources.
Directory traversal in PyTorch's AOTIModelPackageLoader allows arbitrary code execution in the context of the current user when a victim loads an attacker-supplied AOTInductor model package. The CVSS 7.8 vector is local (AV:L) and requires user interaction (UI:R) with no privileges required (PR:N); exploitation is confined to workflows that load untrusted or externally sourced model packages and runs only with the victim's privileges. No public exploit or active exploitation is identified in the available data, and vuln.today assigns a this_week priority rather than an emergency response.
Arbitrary code execution in PyTorch is triggered when a user opens a crafted PT2 archive, allowing the file to run code in the context of the current process. The flaw is an exposed dangerous function reached during PT2 parsing; the independent assessment vector is local (AV:L), requires user interaction (UI:R), and needs no authentication (PR:N), and the advisory does not specify affected or fixed version boundaries. No CISA KEV entry or public exploit code is identified in the supplied data, and the available signals support a moderate this_week priority rather than emergency action.
PyTorch's load_compiled_function deserializes untrusted data without adequate validation, allowing arbitrary code execution in the context of the current process when a victim opens a crafted serialized/compiled-function file. The issue affects PyTorch Foundation PyTorch installations and requires user interaction, with a local attack vector and no required privileges; risk is concentrated in workflows that load third-party or untrusted model and compiled artifacts. No public exploit was identified at time of analysis, and no CISA KEV entry is indicated in the provided data.
Command injection in PyTorch's AOTIModelPackageLoader allows an attacker to execute arbitrary code in the context of the user who loads a crafted model package. The flaw affects PyTorch (CPE: pytorch_foundation:pytorch:*) with a 7.8 high severity score and a local, user-interaction-gated vector (AV:L/UI:R), so exploitation depends on social or supply-chain delivery rather than a listening network service. No CISA KEV entry is present and no public exploit identified at time of analysis.
PyTorch installations that parse attacker-supplied PT2 files can be induced to execute arbitrary Python code in the context of the current process, because a user-supplied string is used for code execution without proper validation (CWE-94 code injection), rated CVSS 7.8. The assessed vector is local with mandatory user interaction (AV:L/AC:L/PR:N/UI:R) - the target must load or parse a crafted PT2 file, so the realistic delivery paths are social engineering or a compromised model-supply channel rather than a network-reachable, interaction-free attack. No public exploit code or active exploitation is identified at the time of analysis, and the priority signal places this in the this-week remediation cycle rather than an emergency; a public advisory exists (ZDI-26-1052) but no vendor patch version is present in the available data.
Local privilege escalation in PyTorch's TorchServe affects all versions: a predictable, non-randomized model extraction directory under /tmp lets a user who already holds a low-privileged local account swap the model handler file so that attacker code is loaded and executed as the TorchServe service account (CVSS 7.8, CWE-379, AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). It is explicitly not remotely exploitable - prior local access is the gating prerequisite - and no user interaction or non-default configuration is indicated. There is no CISA KEV entry and confirmed active exploitation is not established; a public PoC reference exists (a researcher blog and a GitHub repository), but it is not verified as working exploit code. Priority is 'this_week'.
Deserialization of untrusted data in Ultralytics' torch_load function allows code to run in the context of the current user when a victim loads a malicious PyTorch model or weights file, or visits a page that causes such a file to be deserialized. The assessed vector is CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8): no authentication is required (PR:N), but the Local vector and mandatory user interaction mean there is no unauthenticated network-reachable trigger, and code execution does not cross a privilege boundary. No CISA KEV entry and no public exploit were identified at time of analysis; priority is scheduled remediation this week rather than emergency response.
Arbitrary Python code execution in docTR through 1.1.0 is possible when load_pretrained_params() deserializes an attacker-controlled or tamperable checkpoint on PyTorch releases before 2.6. Unauthenticated attackers can supply the poisoned model artifact, but exploitation is conditionally gated: the victim application must load that checkpoint from a path or URL the attacker controls, and PyTorch must predate 2.6, where torch.load began defaulting to weights_only=True. No public exploit code or CISA KEV entry was identified at time of analysis, and this is a genuine but conditionally-gated code-execution flaw rather than a drop-everything emergency.
Out-of-bounds heap read in PyTorch torchvision's native GIF decoder (versions through 0.28.0) lets attackers who supply a malicious or truncated GIF trigger a segmentation-fault denial of service or leak adjacent heap memory. The flaw sits in the libgif read_from_tensor callback, which passes an unclamped length to memcpy. A public exploit and reproducer exist and an upstream fix is available (commit 4e05dc2), but there is no public exploit identified in the sense of confirmed active exploitation - it is not on CISA KEV. Applications that decode untrusted GIFs via torchvision are affected.
PyTorch is a Python package that provides tensor computation. [CVSS 8.8 HIGH]
TorchServe is a tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
NVIDIA APEX for Linux contains a deserialization of untrusted data vulnerability that affects environments using PyTorch versions earlier than 2.6. An attacker with low privileges on an adjacent network can exploit this flaw to achieve code execution, denial of service, privilege escalation, data tampering, and information disclosure with scope change (CVSS 9.0 Critical). No KEV listing or public POC availability has been reported at this time.
A deserialization vulnerability exists in PyTorch 2.10.0 within the pt2 Loading Handler component, allowing local attackers with low privileges to achieve confidentiality, integrity, and availability impacts through untrusted data processing. The vulnerability (CWE-502) is confirmed to have a publicly available exploit and has been reported to the project via pull request PR#176791, though remediation status remains unclear. With a CVSS score of 5.3 and exploitation probability marked as probable (E:P), this represents a moderate real-world risk primarily affecting local development and deployment environments.
Tencent MimicMotion's create_pipeline function deserializes attacker-controlled checkpoint files through torch.load without weights_only=True, enabling arbitrary code execution when a victim loads a malicious model file. The flaw is local-vector and requires user interaction (CVSS 7.8, AV:L/AC:L/PR:N/UI:R), with code running at the privileges of the MimicMotion process-root-level impact only when the tool is run as root. An upstream commit adds safe_globals and weights_only=True; no public exploit was identified at time of analysis, and EPSS is 0.51% (42nd percentile).
Deserialization of untrusted data in Tencent FaceDetection-DSFD's resnet model loader (model/resnet.py) allows an attacker to execute arbitrary code at root privilege on installations where a victim loads an attacker-supplied PyTorch weights file. The flaw is CWE-502: self.model_path is passed directly to torch.load(), which deserializes a Python pickle without validation. Exploitation requires user interaction (the target must open or be delivered the malicious model file) and the vector is local (AV:L) and unauthenticated (PR:N); EPSS is low at 0.43% (36th percentile), no public exploit code was identified at time of analysis, and the project is a niche open-source research codebase with no default network-exposed service, so risk is serious but constrained rather than a widespread emergency.
Arbitrary code execution in Tencent MedicalNet occurs when the generate_model function in model.py loads a pretrained model via torch.load(opt.pretrain_path) without weights_only=True, allowing a malicious PyTorch checkpoint (.pth) to execute pickle reduce payloads in the context of the user running the training pipeline (typically root in containerized or GPU-server deployments). The attack vector is local (AV:L) with mandatory user interaction (UI:R): a victim must point opt.pretrain_path at, or open, an attacker-supplied model file - there is no network-reachable service and no exploit path against an idle/default installation. No public exploit code or confirmed active exploitation (CISA KEV) was identified at time of analysis, and EPSS is low at 0.51% (42nd percentile), consistent with a tool that is not internet-exposed.
Deserialization of untrusted PyTorch checkpoint files in Tencent TFace allows an attacker who convinces a user to load a malicious .ckpt/.pt weights file to execute arbitrary code, including as root, through torch.load() calls that omit weights_only=True. Tencent TFace is a research-grade face-recognition toolkit, and the vulnerable sinks span the quality evaluation and training scripts (quality/eval.py, quality/train.py), the recognition and generation/uiface training, sampling and ONNX-export code, and the attribute/M3DFEL solver. The weakness is CWE-502 and the assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8): exploitation is local and requires user interaction - the victim must supply or be tricked into using an attacker-controlled checkpoint as a resume, finetuning or eval-model argument - so risk is concentrated in environments that ingest third-party or untrusted model artifacts rather than against a default running service. No public exploit code was identified and the CVE is not in CISA KEV; EPSS is 0.51% (42nd percentile), consistent with a low-volume, tooling-adjacent flaw.
PyTorch checkpoint loading in Tencent TFace (restore_checkpoint and related model-loading paths) deserializes untrusted data, letting an attacker who supplies a malicious .ckpt/.pth file execute arbitrary code in the context of the user running TFace - typically root in the reference ZDI finding. The flaw is local and requires user interaction (CVSS 7.8, AV:L/AC:L/PR:N/UI:R): the victim must explicitly point the toolkit at an attacker-controlled checkpoint, for example via a --resume path or a downloaded 'pretrained' model, so realistic abuse is a supply-chain or social-engineering play against TFace operators rather than remote exploitation of a network service. The upstream project has published a fix commit that adds weights_only=True to every torch.load() call; EPSS is low (0.51%, ~42nd percentile), there is no CISA KEV listing, and no public exploit code was identified at time of analysis.
Arbitrary code execution in Tencent NeuralNLP-NeuralClassifier occurs when the prediction path loads an untrusted PyTorch checkpoint via torch.load() without weights_only=True, allowing a malicious pickle payload to run code in the context of the user (described as root in the ZDI advisory). Affected installations are those using the pre-patch predict.py/_load_checkpoint code or a torch version below 2.6.0; exploitation is local and requires the victim to obtain and load an attacker-controlled model file (UI:R), with no network service directly exposed. No public exploit was identified at time of analysis, the issue is not in CISA KEV, and EPSS is 0.51% (42nd percentile).
Deserialization of untrusted data in Tencent PatrickStar's merge_checkpoint endpoint lets an attacker execute arbitrary code with root privileges when a user loads a crafted checkpoint or opens a malicious page that triggers the endpoint. Exploitation requires user interaction and a local attack path; no authentication is needed, but there is no remote unauthenticated network-triggerable route. EPSS is 0.51% (42nd percentile) and no public exploit has been identified at time of analysis.
An issue was discovered in PyTorch v2.5 and v2.7.1. Rated low severity (CVSS 3.3), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
An issue in pytorch v2.7.0 can lead to a Denial of Service (DoS) when a PyTorch model consists of torch.Tensor.to_sparse() and torch.Tensor.to_dense() and is compiled by Inductor. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Uncontrolled Resource Consumption vulnerability could allow attackers to cause denial of service by exhausting system resources.
A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tensor.view-torch.mv() and is compiled by Inductor, leading to a. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Uncontrolled Resource Consumption vulnerability could allow attackers to cause denial of service by exhausting system resources.
A Name Error occurs in pytorch v2.7.0 when a PyTorch model consists of torch.cummin and is compiled by Inductor, leading to a Denial of Service (DoS). Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long(). Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of Service (DoS). Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
An issue in the component torch.linalg.lu of pytorch v2.8.0 allows attackers to cause a Denial of Service (DoS) when performing a slice operation. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU implementation, negatively affecting nn.Dropout1d,. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of the "other" argument. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Out-of-bounds Write vulnerability could allow attackers to write data beyond allocated buffer boundaries leading to code execution or crashes.
In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
In PyTorch before 2.7.0, when inductor is used, nn.Fold has an assertion error. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers library, specifically in the `convert_tf_weight_name_to_pt_weight_name()` function. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
vLLM, an inference and serving engine for large language models (LLMs), has an issue in versions 0.6.5 through 0.8.4 that ONLY impacts environments using the `PyNcclPipe` KV cache transfer. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
A vulnerability was found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. Rated critical severity (CVSS 9.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
A vulnerability, which was classified as problematic, was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available.
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAllocator.cpp. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
A vulnerability classified as problematic has been found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
A vulnerability classified as critical was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability classified as critical has been found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability was found in PyTorch 2.6.0. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. No vendor patch available.
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS 4.8), this vulnerability is low attack complexity. Public exploit code available and no vendor patch available.
A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sending an unexpected POST request to the `/api/v1/state` endpoint of. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the `LightningApp` when running on a Windows host. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
In 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. Rated medium severity (CVSS 6.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
A vulnerability was found in PyTorch 2.6.0+cu124. It has been rated as problematic. [CVSS 2.5 LOW]
A vulnerability was found in PyTorch 2.6.0+cu124. It has been declared as critical. [CVSS 5.0 MEDIUM]
PickleScan before 0.0.23 can be bypassed by flipping specific ZIP file header flag bits, allowing malicious pickle files to evade detection inside PyTorch model archives. An attacker can embed arbitrary code execution payloads that PickleScan misses but PyTorch's torch.load() still processes. A proof-of-concept exists and a patch is available in version 0.0.23.
picklescan before 0.0.23 is vulnerable to a ZIP archive manipulation attack that causes it to crash when attempting to extract and scan PyTorch model archives. By modifying the filename in the ZIP header while keeping the original filename in the directory listing, an attacker can make PickleScan raise a BadZipFile error. However, PyTorch's more forgiving ZIP implementation still allows the mod...
In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated high severity (CVSS 8.2), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Exposure of Resource to Wrong Sphere vulnerability could allow attackers to access resources from an unintended security context.
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
Pytorch before v2.2.0 has an Out-of-bounds Read vulnerability via the component torch/csrc/jit/mobile/flatbuffer_loader.cpp. Rated medium severity (CVSS 5.5), this vulnerability is remotely exploitable, low attack complexity.
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp. Rated high severity (CVSS 7.8), this vulnerability is no authentication required, low attack complexity. This Use After Free vulnerability could allow attackers to access freed memory to execute arbitrary code or crash the application.
PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. Rated medium severity (CVSS 4.0), this vulnerability is no authentication required, low attack complexity.
TorchServe is a tool for serving and scaling PyTorch models in production. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Path Traversal vulnerability could allow attackers to access files and directories outside the intended path.
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.