Deserialization Vulnerability in Pytorch RPC Framework by Pytorch
CVE-2024-7804

9.8CRITICAL

Key Information:

Vendor

Pytorch

Vendor
CVE Published:
20 March 2025

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2024-7804?

A deserialization vulnerability exists in Pytorch's RPC framework, specifically in the torch.distributed.rpc module. The flaw stems from inadequate security verifications during the deserialization of PythonUDF objects, potentially enabling malicious actors to execute arbitrary code remotely. By sending a carefully crafted serialized PythonUDF object, an attacker could gain unauthorized access to the master node. This vulnerability highlights the importance of implementing stringent security checks during the deserialization process to mitigate risks associated with remote code execution.

Affected Version(s)

pytorch/pytorch <= unspecified

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V3.0

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

.