(0Day) PyTorch Foundation PyTorch torch_save_to_dcp Deserialization of Untrusted Data Remote Code Execution Vulnerability
The checkpoint format conversion utilities in PyTorch fail to properly validate user-supplied data, leading to deserialisation of untrusted data. An attacker could exploit this to run arbitrary code as the current user, though the victim must open a malicious file or visit a malicious page.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of PyTorch Foundation PyTorch. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the checkpoint conversion utility deserialises data from an untrusted file without validating it, so crafted content is executed rather than treated as plain data.
Impact
An attacker could execute code in the context of the current user, but only if the victim opens a malicious file or visits a malicious page; the vendor considers the behaviour expected, so no patch is offered.
What the attacker needed
Victim opens a malicious file; victim visits a malicious page
The fix
The vendor rejected the report as expected behaviour, so the only suggested mitigation is to limit interaction with the product.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Some programs save and load data in a format that can also describe code, not just plain values. If the program loads such a file without checking it, a crafted file can make it run the attacker's code on your machine. Here the affected part is a tool that converts saved model checkpoints between formats.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.