CVE-2024-7804: Deserialization of Untrusted Data in pytorch/pytorch

Published Mar 20, 2025
·
Updated

Withdrawn Advisory This advisory has been withdrawn because it describes known functionality of PyTorch. This link is maintained to preserve external references.

Original Description A deserialization vulnerability exists in the Pytorch RPC framework (torch.distributed.rpc) in pytorch/pytorch versions <=2.3.1. The vulnerability arises from the lack of security verification during the deserialization process of PythonUDF objects in pytorch/torch/distributed/rpc/internal.py. This flaw allows an attacker to execute arbitrary code remotely by sending a malicious serialized PythonUDF object, leading to remote code execution (RCE) on the master node.

Other sources

Rejected reason: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.

NVD

Affected Software

2 affected components
PyTorch PyTorch<2.3.1
pip/torch<=2.3.1

Event History

Mar 20, 2025
CVE Published
via MITRE·10:11 AM
Rejected
via MITRE·10:11 AM
Data Sourced
via NVD·10:15 AM
Description
Advisory Published
via GitHub·12:32 PM
Data Sourced
via GitHub·12:32 PM
DescriptionSeverityWeaknessAffected Software
Apr 1, 2025
Rejected
via MITRE·04:46 PM
Apr 2, 2025
Withdrawn
via GitHub·01:31 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-7804?

CVE-2024-7804 has a high severity rating due to its potential for remote code execution through deserialization vulnerabilities.

2

How do I fix CVE-2024-7804?

To fix CVE-2024-7804, upgrade to PyTorch version 2.3.2 or later which addresses the deserialization issue.

3

What versions of PyTorch are affected by CVE-2024-7804?

CVE-2024-7804 affects PyTorch versions 2.3.1 and earlier.

4

What is a deserialization vulnerability as seen in CVE-2024-7804?

A deserialization vulnerability occurs when untrusted data is processed and can lead to code execution or system compromise.

5

What components of PyTorch are impacted by CVE-2024-7804?

CVE-2024-7804 impacts the deserialization process of PythonUDF objects in the PyTorch RPC framework.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203