UBUNTU-CVE-2024-5480

Source
https://ubuntu.com/security/CVE-2024-5480
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5480.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-5480
Upstream
Withdrawn
2025-08-05T04:55:07Z
Published
2024-06-06T19:16:00Z
Modified
2025-07-14T06:36:06.609383Z
Severity
  • Ubuntu - medium
Summary
[none]
Details

A vulnerability in the PyTorch's torch.distributed.rpc framework, specifically in versions prior to 2.2.2, allows for remote code execution (RCE). The framework, which is used in distributed training scenarios, does not properly verify the functions being called during RPC (Remote Procedure Call) operations. This oversight permits attackers to execute arbitrary commands by leveraging built-in Python functions such as eval during multi-cpu RPC communication. The vulnerability arises from the lack of restriction on function calls when a worker node serializes and sends a PythonUDF (User Defined Function) to the master node, which then deserializes and executes the function without validation. This flaw can be exploited to compromise master nodes initiating distributed training, potentially leading to the theft of sensitive AI-related data.

References

Affected packages

Ubuntu:22.04:LTS / pytorch

Package

Name
pytorch
Purl
pkg:deb/ubuntu/pytorch@1.8.1-4?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.1-7
1.8.1-4

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5480.json"

Ubuntu:25.04 / pytorch

Package

Name
pytorch
Purl
pkg:deb/ubuntu/pytorch@2.6.0+dfsg-5build1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.4.1-1ubuntu1
2.4.1-1ubuntu3
2.5.1+dfsg-3
2.5.1+dfsg-4build1
2.5.1+dfsg-4build2
2.6.0+dfsg-3
2.6.0+dfsg-4
2.6.0+dfsg-5
2.6.0+dfsg-5build1

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5480.json"