Bug 2361314
| Summary: | CVE-2025-32434 python-torch: PyTorch: `torch.load` with `weights_only=True` leads to remote code execution [fedora-42] | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Avinash Hanwate <ahanwate> |
| Component: | python-torch | Assignee: | Tom.Rix |
| Status: | NEW --- | QA Contact: | |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 42 | CC: | lx, rocm-packagers-sig, Tom.Rix |
| Target Milestone: | --- | Keywords: | Security, SecurityTracking |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | {"flaws": ["1163b22e-b73c-4c02-b8b4-04fa9b4ef3c2"]} | ||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2360999 | ||
|
Description
Avinash Hanwate
2025-04-21 03:36:37 UTC
The fixing commit is https://github.com/pytorch/pytorch/commit/8d4b8a920a2172523deb95bf20e8e52d50649c04 The issue is that even when using the safe configuration of weights_only=True in torch.load, if a file in the legacy tar format is provided, the load process continues unsafely since legacy tar files can only be loaded unsafely. Oops. The fixing commit adds a check to prevent this from happening. The fix is present in 2.6.0 and newer, so only Fedora 42 is both currently maintained and impacted. Proposed fix is in https://src.fedoraproject.org/rpms/python-torch/pull-request/8 |