{"id":"CVE-2024-7804","aliases":["GHSA-4vmg-rw8f-92f9","UBUNTU-CVE-2024-7804"],"summary":"pytorch: Deserialization of Untrusted Data in pytorch/pytorch","published_at":"2025-03-20T10:11:37.165Z","modified_at":"2026-09-10T03:49:47.737533Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":11.8,"details":"A flaw was found in PyTorch. This vulnerability allows an attacker to execute arbitrary code remotely via a maliciously crafted serialized PythonUDF object.","affected_stack":[],"affected_other":[{"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.3.1"}]}],"versions":["1.0.0","1.0.1","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.12.1","1.13.0","1.13.1","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.8.0","1.8.1","1.9.0","1.9.1","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1"],"provider":"osv","source":"GHSA-4vmg-rw8f-92f9","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"pytorch","purl":"pkg:deb/ubuntu/pytorch@1.8.1-4?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-7","1.8.1-4"],"provider":"osv","source":"UBUNTU-CVE-2024-7804","relation":"self"},{"ecosystem":"Ubuntu:24.10","package":"pytorch","purl":"pkg:deb/ubuntu/pytorch@2.4.1-1ubuntu1?arch=source&distro=oracular","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2+dfsg-4ubuntu1","2.1.2+dfsg-4ubuntu2","2.4.1-1ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2024-7804","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"not_affected","packages":["openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-7804"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI)","cpe":"cpe:/a:redhat:enterprise_linux_ai:1","status":"not_affected","packages":["rhelai1/bootc-amd-rhel9","rhelai1/bootc-aws-nvidia-rhel9","rhelai1/bootc-azure-amd-rhel9","rhelai1/bootc-azure-nvidia-rhel9","rhelai1/bootc-gcp-nvidia-rhel9","rhelai1/bootc-ibm-nvidia-rhel9","rhelai1/bootc-intel-rhel9","rhelai1/bootc-nvidia-rhel9","rhelai1/docling-serve-rhel9","rhelai1/instructlab-amd-rhel9","rhelai1/instructlab-intel-rhel9","rhelai1/instructlab-nvidia-rhel9","rhelai1/ui-rhel9"],"package_count":13,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-7804"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-ml-pipelines-api-server-v2-rhel8","rhoai/odh-ml-pipelines-driver-rhel8","rhoai/odh-ml-pipelines-launcher-rhel8","rhoai/odh-ml-pipelines-persistenceagent-v2-rhel8","rhoai/odh-ml-pipelines-scheduledworkflow-v2-rhel8"],"package_count":5,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2024-7804"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2025-0623","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2025-0623","license":"TLP:CLEAR, mirroring permitted","published_at":"2025-03-23T23:00:00Z","modified_at":"2025-03-23T23:00:00Z","summary":"PyTorch: Mehrere Schwachstellen","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in PyTorch ausnutzen, um Dateien zu manipulieren, vertrauliche Informationen preiszugeben, beliebigen Code auszuführen und einen Denial-of-Service-Zustand zu verursachen.\n\nPyTorch ist eine Tensor-Bibliothek für Deep Learning mit GPUs und CPUs.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2025-0623"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-0623.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2025-0623"},{"type":"WEB","url":"https://github.com/advisories/GHSA-4vmg-rw8f-92f9"},{"type":"WEB","url":"https://github.com/advisories/GHSA-xx7c-j7h3-vjcq"},{"type":"WEB","url":"https://github.com/advisories/GHSA-4cv3-v7pv-rfhf"},{"type":"WEB","url":"https://github.com/advisories/GHSA-98fp-7v67-4v3q"},{"type":"WEB","url":"https://huntr.com/bounties/0e870eeb-f924-4054-8fac-d926b1fb7259"},{"type":"WEB","url":"https://huntr.com/bounties/20917570-8328-428f-bd1d-4fcd71fb2359"},{"type":"WEB","url":"https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd"},{"type":"WEB","url":"https://huntr.com/bounties/8b642a78-2b80-4fb0-9b2f-8ba0ff37db6a"}]},{"provider":"cvelistv5","source_id":"CVE-2024-7804","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-7804","license":"CC-BY-4.0","published_at":"2025-03-20T10:11:37.165Z","modified_at":"2025-04-01T16:46:40.738Z","withdrawn_at":"2025-04-01T16:46:40.738Z","severity":[],"affected":[],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-4vmg-rw8f-92f9","relation":"self","url":"https://osv.dev/vulnerability/GHSA-4vmg-rw8f-92f9","license":"CC-BY-4.0","published_at":"2025-03-20T12:32:46Z","modified_at":"2026-09-10T03:49:47.737533Z","withdrawn_at":"2025-04-02T13:31:15Z","summary":"Withdrawn Advisory: PyTorch deserialization vulnerability","details":"## Withdrawn Advisory\nThis advisory has been withdrawn because it describes known functionality of PyTorch. This link is maintained to preserve external references.\n\n## Original Description\nA 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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-4vmg-rw8f-92f9"}],"affected":[{"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.3.1"}]}],"versions":["1.0.0","1.0.1","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.12.1","1.13.0","1.13.1","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.8.0","1.8.1","1.9.0","1.9.1","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1"],"provider":"osv","source":"GHSA-4vmg-rw8f-92f9","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7804"},{"type":"PACKAGE","url":"https://github.com/pytorch/pytorch"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/blob/27a14405d3b996d572ba18339410e29ec005c775/torch/distributed/rpc/internal.py#L162"},{"type":"WEB","url":"https://huntr.com/bounties/0e870eeb-f924-4054-8fac-d926b1fb7259"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2024-7804","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-7804","license":"CC-BY-SA-4.0","published_at":"2025-03-20T10:15:00Z","modified_at":"2025-07-08T14:32:34.255271Z","withdrawn_at":"2025-07-08T10:47:05Z","details":"Rejected reason: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","severity":[{"type":"","score":"medium","source":"UBUNTU-CVE-2024-7804"}],"affected":[{"ecosystem":"Ubuntu:22.04:LTS","package":"pytorch","purl":"pkg:deb/ubuntu/pytorch@1.8.1-4?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-7","1.8.1-4"],"provider":"osv","source":"UBUNTU-CVE-2024-7804","relation":"self"},{"ecosystem":"Ubuntu:24.10","package":"pytorch","purl":"pkg:deb/ubuntu/pytorch@2.4.1-1ubuntu1?arch=source&distro=oracular","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2+dfsg-4ubuntu1","2.1.2+dfsg-4ubuntu2","2.4.1-1ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2024-7804","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-7804"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-7804"},{"type":"REPORT","url":"https://huntr.com/bounties/0e870eeb-f924-4054-8fac-d926b1fb7259"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/security/policy#using-distributed-features"}]},{"provider":"redhat-vex","source_id":"CVE-2024-7804","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-7804","license":"CC-BY-4.0","published_at":"2025-03-20T10:11:37.165Z","modified_at":"2025-06-18T10:15:02Z","summary":"pytorch: Deserialization of Untrusted Data in pytorch/pytorch","details":"A flaw was found in PyTorch. This vulnerability allows an attacker to execute arbitrary code remotely via a maliciously crafted serialized PythonUDF object.","severity":[{"type":"Red Hat","score":"None","source":"CVE-2024-7804"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"not_affected","packages":["openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-7804"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI)","cpe":"cpe:/a:redhat:enterprise_linux_ai:1","status":"not_affected","packages":["rhelai1/bootc-amd-rhel9","rhelai1/bootc-aws-nvidia-rhel9","rhelai1/bootc-azure-amd-rhel9","rhelai1/bootc-azure-nvidia-rhel9","rhelai1/bootc-gcp-nvidia-rhel9","rhelai1/bootc-ibm-nvidia-rhel9","rhelai1/bootc-intel-rhel9","rhelai1/bootc-nvidia-rhel9","rhelai1/docling-serve-rhel9","rhelai1/instructlab-amd-rhel9","rhelai1/instructlab-intel-rhel9","rhelai1/instructlab-nvidia-rhel9","rhelai1/ui-rhel9"],"package_count":13,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-7804"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-ml-pipelines-api-server-v2-rhel8","rhoai/odh-ml-pipelines-driver-rhel8","rhoai/odh-ml-pipelines-launcher-rhel8","rhoai/odh-ml-pipelines-persistenceagent-v2-rhel8","rhoai/odh-ml-pipelines-scheduledworkflow-v2-rhel8"],"package_count":5,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2024-7804"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-7804.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-7804"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2353598"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-7804"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7804"},{"type":"WEB","url":"https://huntr.com/bounties/0e870eeb-f924-4054-8fac-d926b1fb7259"}]}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7804"},{"type":"PACKAGE","url":"https://github.com/pytorch/pytorch"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/blob/27a14405d3b996d572ba18339410e29ec005c775/torch/distributed/rpc/internal.py#L162"},{"type":"WEB","url":"https://huntr.com/bounties/0e870eeb-f924-4054-8fac-d926b1fb7259"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-7804"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-7804"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/security/policy#using-distributed-features"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-7804.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-7804"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2353598"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2025-0623","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2025-0623","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-03-23T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2024-7804","url":"https://www.cve.org/CVERecord?id=CVE-2024-7804","license":"CC-BY-4.0","modified_at":"2025-04-01T16:46:40.738Z","relation":"self"},{"provider":"osv","source_id":"GHSA-4vmg-rw8f-92f9","url":"https://osv.dev/vulnerability/GHSA-4vmg-rw8f-92f9","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:47.737533Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2024-7804","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-7804","license":"CC-BY-SA-4.0","modified_at":"2025-07-08T14:32:34.255271Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-7804","url":"https://access.redhat.com/security/cve/CVE-2024-7804","license":"CC-BY-4.0","modified_at":"2025-06-18T10:15:02Z","relation":"self"}]}
