(0Day) Meta fairseq2 FileCheckpointManager _load_state_dict Deserialization of Untrusted Data Remote Code Execution Vulnerability
The FileCheckpointManager class in Meta fairseq2 fails to validate user-supplied data in its _load_state_dict method, leading to deserialisation of untrusted data. An attacker could exploit this to execute arbitrary code in the context of the current process, though user interaction is required.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Meta fairseq2. 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-loading routine deserialises data from an untrusted file without validating or restricting what can be reconstructed, allowing arbitrary code execution.
Impact
An attacker could execute arbitrary code in the context of the current process, but the target must first visit a malicious page or open a malicious file.
What the attacker needed
Victim opens a malicious file; victim visits a malicious page
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.
This is a flaw in a machine-learning library where loading a saved model file can run hidden code. If you open a malicious file, the attacker's code runs on your computer with your permissions. You would need to be tricked into opening such a file.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.