Update dependency torch [SECURITY]#52
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
71e3625 to
44ade71
Compare
44ade71 to
4345a71
Compare
4345a71 to
420fb32
Compare
Contributor
Author
|
420fb32 to
7979fad
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
7979fad to
3cce415
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==2.8.0+cu126→==2.12.1+cu126==2.6.0→==2.12.1==2.5.1→==2.12.1==2.8.0→==2.12.1BIT-pytorch-2025-55551 / CVE-2025-55551 / PYSEC-2025-203
More information
Details
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.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-55552 / CVE-2025-55552 / PYSEC-2025-204
More information
Details
pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-55554 / CVE-2025-55554 / PYSEC-2025-206
More information
Details
pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long().
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
PyTorch is vulnerable to memory corruption through its unpack_sequence function
BIT-pytorch-2025-2999 / CVE-2025-2999 / GHSA-vgrw-7cvw-pwgx / PYSEC-2025-193
More information
Details
A vulnerability was found in PyTorch 2.6.0. It has been rated as critical. Affected by this issue is the function torch.nn.utils.rnn.unpack_sequence. The manipulation leads to memory corruption. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used.
A patch is available through commit 4945180.
Severity
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
PyTorch is vulnerable to memory corruption through its torch.lstm_cell function
BIT-pytorch-2025-3001 / CVE-2025-3001 / GHSA-qfhq-4f3w-5fph / PYSEC-2025-195
More information
Details
A vulnerability classified as critical was found in PyTorch 2.6.0. This vulnerability affects the function torch.lstm_cell. The manipulation leads to memory corruption. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used.
A patch is available through commit 999d94b.
Severity
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BIT-pytorch-2026-4538 / CVE-2026-4538 / PYSEC-2026-139
More information
Details
A vulnerability was identified in PyTorch 2.10.0. The affected element is an unknown function of the component pt2 Loading Handler. The manipulation leads to deserialization. The attack can only be performed from a local environment. The exploit is publicly available and might be used. The project was informed of the problem early through a pull request but has not reacted yet.
Severity
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
PyTorch is vulnerable to memory corruption through its torch.jit.script function
BIT-pytorch-2025-3000 / CVE-2025-3000 / GHSA-rrmf-rvhw-rf47 / PYSEC-2025-194
More information
Details
A vulnerability classified as critical has been found in PyTorch 2.6.0. This affects the function torch.jit.script. The manipulation leads to memory corruption. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used.
Severity
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
PyTorch Tuple Handler is Vulnerable to Memory Corruption through Manipulation of None Argument
BIT-pytorch-2025-2148 / CVE-2025-2148 / GHSA-c678-jfcj-6jmf / PYSEC-2025-189
More information
Details
A vulnerability was found in PyTorch 2.6.0+cu124. It has been declared as critical. Affected by this vulnerability is the function torch.ops.profiler._call_end_callbacks_on_jit_fut of the component Tuple Handler. The manipulation of the argument None leads to memory corruption. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult.
Severity
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function
BIT-pytorch-2025-2998 / CVE-2025-2998 / GHSA-f4hp-rmr7-r7v8 / PYSEC-2025-192
More information
Details
A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used.
Severity
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
PyTorch: Manipulation of the argument scale/zero_point leads to improper initialization via Quantized Sigmoid Module
BIT-pytorch-2025-2149 / CVE-2025-2149 / GHSA-x3gm-94wq-g975 / PYSEC-2025-190
More information
Details
A vulnerability was found in PyTorch 2.6.0+cu124. It has been rated as problematic. Affected by this issue is the function nnq_Sigmoid of the component Quantized Sigmoid Module. The manipulation of the argument scale/zero_point leads to improper initialization. The attack needs to be approached locally. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used.
Severity
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-2953 / CVE-2025-2953 / GHSA-3749-ghw9-m3mg / PYSEC-2025-191
More information
Details
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Affected by this issue is the function torch.mkldnn_max_pool2d. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The security policy of the project warns to use unknown models which might establish malicious effects.
Severity
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-46148 / CVE-2025-46148 / PYSEC-2025-198
More information
Details
In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-46149 / CVE-2025-46149 / PYSEC-2025-199
More information
Details
In PyTorch before 2.7.0, when inductor is used, nn.Fold has an assertion error.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-46150 / CVE-2025-46150 / PYSEC-2025-200
More information
Details
In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-46152 / CVE-2025-46152 / PYSEC-2025-201
More information
Details
In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of the "other" argument.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-46153 / CVE-2025-46153 / PYSEC-2025-202
More information
Details
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, nn.Dropout2d, and nn.Dropout3d for fallback_random=True.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
PyTorch susceptible to local Denial of Service
BIT-pytorch-2025-2953 / CVE-2025-2953 / GHSA-3749-ghw9-m3mg / PYSEC-2025-191
More information
Details
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Affected by this issue is the function torch.mkldnn_max_pool2d. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.
Severity
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-55553 / CVE-2025-55553 / PYSEC-2025-205
More information
Details
A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of Service (DoS).
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-55557 / CVE-2025-55557 / PYSEC-2025-207
More information
Details
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).
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-55558 / CVE-2025-55558 / PYSEC-2025-208
More information
Details
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 Denial of Service (DoS).
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-55560 / CVE-2025-55560 / PYSEC-2025-209
More information
Details
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.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
PyTorch Improper Resource Shutdown or Release vulnerability
BIT-pytorch-2025-3730 / CVE-2025-3730 / GHSA-887c-mr87-cxwp
More information
Details
A vulnerability, which was classified as problematic, was found in PyTorch 2.6.0. Affected is the function torch.nn.functional.ctc_loss of the file aten/src/ATen/native/LossCTC.cpp. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The name of the patch is 46fc5d8e360127361211cb237d5f9eef0223e567. It is recommended to apply a patch to fix this issue.
Severity
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
PyTorch:
torch.loadwithweights_only=Trueleads to remote code executionBIT-pytorch-2025-32434 / CVE-2025-32434 / GHSA-53q9-r3pm-6pq6 / PYSEC-2025-41
More information
Details
Description
I found a Remote Command Execution (RCE) vulnerability in PyTorch. When loading model using torch.load with weights_only=True, it can still achieve RCE.
Background knowledge
https://github.com/pytorch/pytorch/security

As you can see, the PyTorch official documentation considers using
torch.load()withweights_only=Trueto be safe.Since everyone knows that weights_only=False is unsafe, so they will use the weights_only=True to mitigate the seucirty issue.
But now, I just proved that even if you use weights_only=True, it can still achieve RCE.
Credit
This vulnerability was found by Ji'an Zhou.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BIT-pytorch-2025-32434 / CVE-2025-32434 / GHSA-53q9-r3pm-6pq6 / PYSEC-2025-41
More information
Details
PyTorch 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.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
Release Notes
pytorch/pytorch (torch)
v2.12.1Compare Source
v2.12.0: PyTorch 2.12.0 ReleaseCompare Source
PyTorch 2.12.0 Release Notes
Highlights
fused=True, joining Adam, AdamW, and SGD with a single-kernel optimizer implementation.For more details about these highlighted features, you can look at the release blogpost. Below are the full release notes for this release.
Backwards Incompatible Changes
Build Frontend
Strengthened SVE compile checks in
FindARM.cmake, which may reject previously accepted but incorrect SVE configurations (#176646)Source builds that enable SVE now validate the compiler configuration more strictly. If a build previously passed with an incomplete or mismatched SVE setup, it may now fail during CMake configuration instead of later in compilation. Update the compiler/toolchain flags so they accurately describe the target SVE support, or disable SVE for that build.
Updated the minimum CUDA version required to build PyTorch from source to CUDA 12.6 (#178925)
Building PyTorch from source with CUDA versions older than 12.6 is no longer supported. Users building custom binaries should install CUDA 12.6 or newer and make sure
CUDA_HOMEpoints to that installation.Version 2.11:
Version 2.12:
Enforced a C++20 minimum in CMake build files (#178662)
Source builds now require a compiler and build configuration that support C++20. If you maintain custom build scripts or downstream extensions that build PyTorch from source, update the compiler and remove assumptions that PyTorch can be built as C++17.
Distributed
torch.distributed.nn.functionalops now raiseRuntimeErrorundertorch.compile(#177342)All ops in
torch.distributed.nn.functional(e.g.,broadcast,all_reduce,all_gather,reduce_scatter,all_to_all_single) now raiseRuntimeErrorwhen called insidetorch.compile. Users should migrate to the functional collectives API intorch.distributed._functional_collectives.Version 2.11:
Version 2.12:
TorchElastic
torchrunnow defaults to an OS-assigned free port for single-node training instead of port 29500 (#175699)When running
torchrun --nproc-per-node=N script.pywithout specifying--master-portor--standalone, the default behavior now automatically uses an OS-assigned free port via thec10drendezvous backend. This eliminates "Address already in use" errors when running multiple training jobs concurrently. Multi-node training, explicit--master-port,PET_MASTER_PORTenv var, and--standaloneare unchanged.Version 2.11:
# Used static rendezvous on port 29500 by default torchrun --nproc-per-node=4 train.pyVersion 2.12:
MPS
All MPS tensors are now allocated in unified memory (#175818)
Previously, MPS tensors could be allocated in either device-only or unified memory. Now all MPS tensors use unified memory unconditionally. This simplifies memory management and enables CPU access to MPS tensor data without explicit copies. Code that relied on device-only memory placement may observe different performance characteristics.
Inductor
The
max_autotunelayout-constraint deferral introduced in 2.11 is now opt-in (#175330)In 2.11, Inductor deferred layout freezing for
max_autotunetemplates to expose more fusion opportunities. This caused a regional-inductor failure mode, so the default in 2.12 reverts to immediate layout freezing. Users who relied on the deferred behavior for fusion opportunities should opt in explicitly viatorch._inductor.config.max_autotune_defer_layout_freezingorTORCHINDUCTOR_MAX_AUTOTUNE_DEFER_LAYOUT_FREEZING=1.Version 2.11:
Version 2.12:
Deprecations
Release Engineering
Deprecate CUDA 12.8 builds in favor of CUDA 13.0 (#179072)
CUDA 12.8 binaries have been removed from the PyTorch binary build matrix. CUDA 13.0 is now the stable default and CUDA 12.6 remains available for users on older drivers. Users explicitly pinning the
cu128index URL will need to switch tocu130(recommended) orcu126.Version 2.11:
Version 2.12:
Compatibility with CMake < 3.10 will be removed in a future release (#166259)
Source builds against CMake versions older than 3.10 now emit a deprecation warning. A future release will require CMake 3.10 or newer; please upgrade CMake before then.
Linear Algebra
Several CUDA linear algebra operators no longer use the MAGMA backend and now dispatch to cuSolver or cuBLAS unconditionally:
torch.linalg.eighnow dispatches to cuSolver (#174619)torch.linalg.lu_solvenow dispatches to cuSolver/cuBLAS (#174248)torch.linalg.cholesky_inversenow dispatches to cuSolver (#174681)torch.linalg.cholesky_solvenow dispatches to cuSolver (#174769)User code calling these APIs does not need to change. The practical impact is for users who depended on MAGMA-specific numerical behavior, performance characteristics, or debugging. Those calls now use the cuSolver/cuBLAS implementations on CUDA.
FullyShardedDataParallel2 (FSDP2)
Compiling through FSDP2 hooks without graph breaks is no longer supported (#174863, #174906). If you use compiled autograd with FSDP2, update your code to allow graph breaks around FSDP2 hooks or disable compiled autograd for the FSDP2 training step.
Version 2.11:
Version 2.12:
Profiler
Profiler's
metadata_jsonfield is now deprecated; useevent_metadatainstead (#179417)Version 2.11:
Version 2.12:
Dynamo
torch.compile(fullgraph=True)now warns when a call runs no compiled code; will error in 2.13 (#181940)Previously
fullgraph=Truewas only validated once Dynamo actually compiled and ran the function. If Dynamo was bypassed at call time (e.g. under a user-definedTorchDispatchMode), the annotation silently had no effect. 2.12 emits a warning; 2.13 will raise. For graph-break errors withoutfullgraph's stronger guarantees, usetorch._dynamo.error_on_graph_break.Version 2.12:
The
inline_inbuilt_nn_modulesDynamo config is deprecated (#177489, #178205)Inlining of in-built
nn.Moduleinstances is now the default; setting the flag emits a deprecation warning and it will be removed in a future release.Version 2.11:
Version 2.12:
Added a deprecation framework to the
torch.compileconfig module so individual options can be marked deprecated (#169837)New Features
Release Engineering
Python Frontend
torch.accelerator.Graphas a unified frontend Graph interface (#171285)Foreach
_foreach_cloneoperator, with a fast path for CUDA utilizing_foreach_copy_(#177421)Distributed
Store::barrierAPI and TCPStore clientBARRIERsupport, reducing synchronization round trips compared to the existingADD+WAITpattern (#174920)suspend(),resume(), andmemory_stats()APIs for managing communicator memory lifecycle (#176300)all_to_allsupport in the Gloo backend (#165435)reduce_scatter_offsetto symmetric memory, supporting variable-sized block reductions with NVLink multicast or LSA fallback (#177791)batch_isend_irecvto work undertorch.compile(#161213)torch.distributed.symmetric_memory.is_symm_mem_tensor()API to check if a tensor is a symmetric memory tensor (#178947)NanCheckto a standalone op (torch.ops.c10d.check_for_nan) usable outside ofProcessGroupNCCL(#174990)DTensor
grad_placementsparameter toDTensor.from_local(), allowing explicit control over gradient placements in the backward pass (#175867)FullyShardedDataParallel2 (FSDP2)
fully_shardwith DTensors on a full SPMD mesh viaDataParallelMeshDims(#176334)TorchElastic
--shutdown-timeouttotorchrunfor controlling the SIGTERM-to-SIGKILL timeout during worker shutdown (#172596)CPU x86
CPUBlasbrgemm API for fp8 (e4m3 & e5m2) GEMM, backed by oneDNN (#172548)CUDA
torch.condwith CUDA graphs, using conditional graph nodes (CUDA 12.4+) so data-dependent control flow can be captured entirely inside a single CUDA graph. Works with theeagerandcudagraphstorch.compilebackends (no Inductor support yet). (#168912)MPS
linalg_qrfor MPS (#172536)cholesky_solvesupport on MPS (#176703)index_reduceon MPS (#174936)torch.distributions.Gamma(forward + backward) on MPS (#179228)mvlgammaon MPS (#178914)nonzero_staticimplementation on MPS (#179589) (from miscategorized)ROCm
Configuration
📅 Schedule: (in timezone America/Toronto)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.